remix icon indicating copy to clipboard operation
remix copied to clipboard

Redirect triggers page reload in deployed version when redirecting with redirecting to a full URL

Open cjkooij opened this issue 2 years ago • 0 comments

What version of Remix are you using?

1.7.4

Steps to Reproduce

Have an action function with a redirect in which you redirect to to a full URL with the protocol/host.

Expected Behavior

Page does not reload, as it does while running the code locally.

Actual Behavior

Page does reload (when deployed).

Ryan's comment: "we have code to make sure to do a window.location = instead of history.pushState in that case we should add some code to be less naive and check if the window.origin is the same, too"

cjkooij avatar Nov 21 '22 11:11 cjkooij