Skip to content

Commit

Permalink
fix (share): filename issue in shared link
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-kerjean committed Dec 10, 2024
1 parent 003c4a9 commit 023b018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/assets/pages/ctrl_sharepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function(render) {
else if (step === "code") return ctrlEmailCodeVerification(render, { shareID, setState });
else if (step === "done") {
if (isDir(state["path"])) navigate(toHref(`/files/?share=${shareID}`));
else navigate(toHref(`/view/${basename(state["path"])}?share=${shareID}&nav=false`));
else navigate(toHref(`/view/${encodeURIComponent(basename(state["path"]))}?share=${shareID}&nav=false`));
return rxjs.EMPTY;
}
else assert.fail(`unknown step: "${step}"`);
Expand Down

0 comments on commit 023b018

Please sign in to comment.