[ui] fix nav bug
parent
4bc89b815c
commit
9d5c9156ca
|
@ -12,9 +12,10 @@
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
let routerTo = "#";
|
let routerTo = "#";
|
||||||
|
$: {
|
||||||
if ($location.pathname.startsWith("/browse") && to.entity) {
|
if ($location.pathname.startsWith("/browse") && to.entity) {
|
||||||
routerTo = `${$location.pathname},${to.entity}`;
|
routerTo = `${$location.pathname},${to.entity}`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue