Properly encode path links, remove unused password settings

This commit is contained in:
2023-05-30 16:59:11 +02:00
parent 0299b730a5
commit 8377ac1fab
9 changed files with 34 additions and 45 deletions

View File

@@ -1,4 +1,6 @@
<script>
import { fs_encode_path } from "./FilesystemUtil";
export let state = {}
export let fs_navigator
</script>
@@ -6,7 +8,7 @@ export let fs_navigator
{#each state.path as node, i (node.path)}
{@const shared = node.id !== undefined && node.id !== "me"}
<a
href={state.path_root+node.path}
href={"/d"+fs_encode_path(node.path)}
class="breadcrumb button"
class:button_highlight={state.base_index === i}
on:click|preventDefault={() => {fs_navigator.navigate(node.path, true)}}