mefechoel / svelte-navigator

Simple, accessible routing for Svelte
Other
506 stars 39 forks source link

FR: Add option to specify multiple paths for one route #95

Open marekdedic opened 1 year ago

marekdedic commented 1 year ago

Is your feature request related to a problem? Please describe.

Hi, I have an app where several routes render the same component(s) - for example the route / should render the same content as the route /products. Currently, I need to have two duplicate <Route> components to do that

Describe the solution you'd like

Having the option to pass multiple paths to one route - e.g. <Route path="/,/products">

marekdedic commented 1 year ago

This could also help with rendering a menu/navigation/... that is shared for some, but not all routes.