#Return redirect("/newroute") from ActionFunction works locally but not when deployed

1 messages · Page 1 of 1 (latest)

sand swift
#

is this the correct way to force navigation? is there a way to navigate "client side" from within the app? I could use <Link> but I need to perform other actions before the link navigation

willow bloom
#

it should work when deployed, try to create a reproduction repo

sand swift
#

I can't re-create this specific environment because this is a production app, but if you're saying I'm doing it the right way, I'll check with backend because it might be an internal issue

#

in the future though, is there a way to do it within the JS? redirect doesn't work outside of loader/action right?

willow bloom
#

you cna use useNavigate to get a navigate function, but it should work