joystick
joystick copied to clipboard
Consider adding a .redirect() method to the url object on components
A little hesitant to do this as the current recommendation is to modify the location object directly, but it may be helpful to just include a helper function that does that work for you. Something like...
url.redirect('/path/to/go/to', { someQueryParam: '' });
Which would essentially convert to...
location.href = '${location.origin}${pathname}${serializeQueryParams(queryParams)}';