When trying to redirect within the application, it's hard to do it properly.
Describe the solution you'd like
useLocation should return makePath function that takes path and/or params and/or query, merging those to return the correct absolute path for the application.
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