Replies: 2 comments 3 replies
-
I think this is partially a dup of remix-run/react-router#9859, so let's keep using that one for the ability to specify same-domain hard redirects. As for |
Beta Was this translation helpful? Give feedback.
-
Closing this as a duplicate of remix-run/react-router#9859. Should be available in remix v2 via remix-run/react-router#10705 and #7040. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app that mixes a Remix app and another server-side app on the same URL namespace[1]. This works in most cases, as long as I remember to add
reloadDocument
on each<Link>
(or use<a>
) and<Form>
.However, one case that broke when I tried upgrading from Remix 1.9 to 1.11 was a
<Form reloadDocument>
that responds with aredirect
. Previously this was no problem as the browser would do a full navigation there, but since this update Remix will keep doing a client-side navigation when this happens.I think it would be great if we could emit another header, like the
x-remix-redirect
header used for redirections, that indicate that no client-side navigation should take place. The current logic just assumes that all paths on the same origin would be handled by Remix and all paths on some other origin should be using a real redirect.In the meantime, what sort of workaround can I do? I'm thinking of making the
action
actually render an empty page that just redirects on page load. That doesn't work if JS is disabled, though…[1]: Converting a Rails app into a Remix app. This needs to happen slowly, page-by-page, but it's not unlikely that someone would mount a Remix app under
/admin
and some other app under the root.Beta Was this translation helpful? Give feedback.
All reactions