svelte-navigator icon indicating copy to clipboard operation
svelte-navigator copied to clipboard

FR: Add option to specify multiple paths for one route

Open marekdedic opened this issue 2 years ago • 1 comments

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 avatar Oct 16 '22 06:10 marekdedic

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

marekdedic avatar Oct 16 '22 07:10 marekdedic