Skip to content

Commit c46c100

Browse files
committed
fix #7717 -- files/jupyterlab: home directory causes a warning
1 parent 34acce3 commit c46c100

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/frontend/project/explorer/misc-side-buttons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export const MiscSideButtons: React.FC<Props> = (props) => {
150150
const base = serverURL(project_id, "jupyterlab");
151151
// we make sure the url ends wiht a slash, without messing up the full URL
152152
const s = base.slice(base.length - 1) === "/" ? "" : "/";
153-
const url = `${base}${s}lab/tree/${current_path ?? ""}`;
153+
const url = `${base}${s}${current_path ? "lab/tree/" + current_path : ""}`;
154154
return (
155155
<LinkRetry href={url} mode="button">
156156
<Tip

0 commit comments

Comments
 (0)