Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested routes not working as expected when router basepath is set #108

Open
lionzeye opened this issue Feb 15, 2023 · 0 comments
Open

Nested routes not working as expected when router basepath is set #108

lionzeye opened this issue Feb 15, 2023 · 0 comments

Comments

@lionzeye
Copy link

lionzeye commented Feb 15, 2023

Problem: nested routes work as expected when a basepath is set to the Router and navigation is done from a root Route.
However, if I trigger a full page reload and try to let the Router pick up a nested Route from the current URL, then no Route content is displayed and the Router doesn't fall back to any other Route in the expected fallback order.

<Router basepath="/host">
    <Link to="svelte">Go to Svelte</Link>
    <Link to="test/1234">Go to test with id 1234</Link>
    <Route path="svelte">Yeah, Svelte!</Route>
    <Route path="test/:id" let:params>at: {params.id}</Route>
    <Route>404</Route>
</Router>

Expected content after full page reload:
image

Actual content after page reload:
image

Tested version: 3.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant