mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-16 05:18:38 +01:00
fix (share): filename issue in shared link
This commit is contained in:
parent
003c4a9737
commit
023b0189fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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}"`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue