TanStackT
TanStack6mo ago
2 replies
dangerous-fuchsia

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
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.
Window: open() method - Web APIs | MDN
Was this page helpful?