Closed wmertens closed 1 month ago
I don't think this belong in useLocation()
@manucorporat is it because it would create overhead? How about a useMakePath() hook that calls useLocation?
We moved this issue to qwik-evolution
repo to create a RFC discussion for this.
Here is our Qwik RFC process thanks.
Is your feature request related to a problem?
When trying to redirect within the application, it's hard to do it properly.
Describe the solution you'd like
useLocation
should returnmakePath
function that takespath
and/orparams
and/orquery
, merging those to return the correct absolute path for the application.Describe alternatives you've considered
Adhoc path generation. People will often forget query strings and the base path
Additional context
No response