We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6595a8e + 8333f05 commit d0ab154Copy full SHA for d0ab154
1 file changed
app-prefixable/src/app.tsx
@@ -31,7 +31,9 @@ function DirectoryIndex() {
31
function SessionIndex() {
32
const params = useParams<{ dir: string }>()
33
const href = getLastSessionHref(params.dir)
34
- return href === "session" ? <Session /> : <Navigate href={href} replace />
+ if (href === "session") return <Session />
35
+ const id = href.replace(/^session\//, "")
36
+ return <Navigate href={id} replace />
37
}
38
39
function AppRoutes() {
0 commit comments