Redirect question
I need to redirect a user to another page outside of my app from a server function and I'm using a redirect function passing the URL into the
href
, but the thing is my app is hosted as an iframe and this does not work.
Basically I need something like the open function so I can pass in _top
in the 2nd param like so:
open('https://...', '_top')
Is this doable with the redirect
function or should I do it in a different way?MDN Web Docs
Window: open() method - Web APIs | MDN
The open() method of the Window interface loads a specified resource into a new or existing browsing context (that is, a tab, a window, or an iframe) under a specified name.
2 Replies
genetic-orange•4w ago
this is not supported yet. would build the href using router.buildLocation and then call open manually
continuing-cyanOP•4w ago
good to know, thanks 🙂