joystick icon indicating copy to clipboard operation
joystick copied to clipboard

Consider adding a .redirect() method to the url object on components

Open rglover opened this issue 3 years ago • 0 comments

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)}';

rglover avatar Jun 17 '22 17:06 rglover