Navigate by id

This commit is contained in:
Adria Navarro 2023-07-19 10:15:53 +02:00
parent 701772ebd5
commit 37aed2d171
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@
selected={$isActive("./view") && $views.selected?.name === viewName}
on:click={() => {
if (view.version === 2) {
$goto(`./view/v2/${encodeURIComponent(viewName)}`)
$goto(`./view/v2/${view._id}`)
} else {
$goto(`./view/${encodeURIComponent(viewName)}`)
}