You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<HashRouter><Routepath="/:roomId?"component={App}matchFilters={{roomId: /^(!|\$|#)/// Match $ or # for the roomId}}/><Routepath="/login"component={Login}/></HashRouter>
Using http://localhost:5173/#/$test works, using http://localhost:5173/#/!test works but using http://localhost:5173/#/#test causes the roomId param to be undefined when using it.
See above for a minimal example of the issue and how to reproduce it please.
Expected behavior
I would expect that #test is equally valid as any other string and isnt omitted.
Screenshots or Videos
No response
Platform
OS: Linux Fedora 40
Browser: Firefox 128.0 (64-Bit)
Version: SolidJs ^1.8.18 | Solidjs-Router ^0.14.1
Additional context
I haven't checked the other routers as my app isnt SSR compatible
The text was updated successfully, but these errors were encountered:
MTRNord
changed the title
Use param doesnt return a param if the value of it starts with a hash while using the HashRouter
useParam() doesn't return a parameter if the value of it starts with a hash while using the HashRouter
Jul 19, 2024
Describe the bug
I have this route setup currentlly:
Using
http://localhost:5173/#/$test
works, usinghttp://localhost:5173/#/!test
works but usinghttp://localhost:5173/#/#test
causes theroomId
param to be undefined when using it.Example usage is:
Your Example Website or App
See the above for a minimal example of the issue.
Steps to Reproduce the Bug or Issue
See above for a minimal example of the issue and how to reproduce it please.
Expected behavior
I would expect that
#test
is equally valid as any other string and isnt omitted.Screenshots or Videos
No response
Platform
Additional context
I haven't checked the other routers as my app isnt SSR compatible
The text was updated successfully, but these errors were encountered: