-
Notifications
You must be signed in to change notification settings - Fork 184
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
fallback route if all routes including nested ones failed to match #264
Comments
<script>
import {Router, Route} from 'svelte-routing'
</script>
<Router>
<Route path="/">
<div>Main Layout</div>
<Router>
<Route path="/">Main</Route>
<Route path="/nested">nested within main layout</Route>
<Route path="*">Not Found in Root</Route>
</Router>
</Route>
<Route path="/config">
<div>Config Layout</div>
<Router>
<Route path="/">Config Listing</Route>
<Route path="/1">Config 1</Route>
<Route path="/2">Config 2</Route>
<Route path="*">Not Found in Config</Route>
</Router>
</Route>
<Route path="*">Not Found</Route>
</Router> Try this |
Thank you, but the example you're suggesting is against the requirements as specified in my post (subject and content) Requirements:
|
Suggestion giving reason is to understand the issue deeply. |
@krishnaTORQUE, I really appreciate your efforts, but at least have some respect for my efforts with the issue I'm reporting. The example you're providing is deviating from the subject and wrong at all, and no way you'll reach |
This should've went into the Discussions tab if it was available.
I'm trying to achieve the following:
unfortunately, no way to reach Not Found.
The text was updated successfully, but these errors were encountered: