<HashRouter>
<Route path="/:roomId?" component={App} matchFilters={{
roomId: /^(!|\$|#)/ // Match $ or # for the roomId
}} />
<Route path="/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.
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