Remove tailing /
Is it possible to make routes with wildcards dont show the last
/ if the splat is undefined?
Lets say i have the route /search/$.tsx if i do
it navigates to /search/test/test as expected, and if i do
it navigates to /search/ wich also makes sense, but i dont really like how the url ends up looking, with the tailing /. Is there any better way to do this? i think optional path params dont work since the splat can have multiple /2 Replies
typical-coral•4mo ago
might just be a bug. it should adhere to the
trailingSlash option IMO
can you please create a github issue for this?
ideally, create a failing unit test as a PRquickest-silverOP•4mo ago
i can definitly create the issue and ill take a look at the unit tests
thanks manuel