Open giosifelis opened 2 years ago
Try using a wildcard: <Route path="*">...</Route>
.
this is how i do in my project, not very perfect but works well
<Route path="/customers/:id/*" let:params>
{#await pb.records.getOne('customers', params.id) then record}
<Router>
<Route path="/">
<ViewCustomer {record}/>
</Route>
<Route>
<NotFound/>
</Route>
</Router>
{:catch error}
<NotFound/>
{/await}
</Route>
How do you do a 404 page for routes that don't exist?
I"ve tried a Route with no path (just as svelte-routing suggest) with no success
any idea?