mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Add redirection to project depending on rad-web cwd
This commit is contained in:
@@ -35,7 +35,14 @@
|
||||
},
|
||||
});
|
||||
}
|
||||
void router.push({ resource: "home" });
|
||||
const route = router.urlToRoute(
|
||||
new URL(activeRoute.params.path || "", window.location.origin),
|
||||
);
|
||||
if (route) {
|
||||
void router.push(route);
|
||||
} else {
|
||||
void router.push({ resource: "home" });
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user