Open genki opened 1 year ago
Sorry, can you be more specific on how to reproduce this?
What do I click on? What is expected? What happens instead.
@mhevery Sorry, it's difficult because the stackblitz has only a fake navigation bar so we can't see the real URL redirected to.
Could you use any of your qwik app to have configured that the trailingSlash:false
?
And then append the query string in the navigation bar like thishttps://yourapp.com?foo=bar
.
It will be redirected to https://yourapp.com/?foo=bar
even if we have configured trailingSlash:false
.
I expect to see https://yourapp.com?foo=bar
in the navigation bar.
Which component is affected?
Qwik City (routing)
Describe the bug
Configured the Qwik City as
qwikCity({trailingSlash:false})
in vite config, all routes turned to be without the trailing slash except the root path with query string. The URL like thishttps://example.com?foo=bar
is redirected tohttps://example.com/?foo=bar
althoughhttps://example.com
andhttps://example.com/todo?foo=bar
doesn't. I think this is not consistent.Reproduction
https://stackblitz.com/edit/qwik-starter-znqffd?file=src%2Froutes%2Findex.tsx
Steps to reproduce
See the top page and "demo" page linked from the top page. These two pages show the
loc.url
at the top. Due to the stackblitz's behaviour, we need to reload for each page view to show the real url. As we cannot see the real address bar, the behaviour of the reproduction is slightly different from the real.System Info
Additional Information
No response