Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Redirected url is not updated properly #3846

Closed
phuongnd08 opened this Issue · 4 comments

4 participants

@phuongnd08

So I'm on "/page1.html", and I submit a form (POST) to "/process.html", which redirect back to "/page1.html" with a 302 status. The content shown to me is from "/page1.html", but the link displayed on the browser is "/process.html" (which is not very good if user hit Refresh, because it loads the page via http GET, which results in error). It should be "/page1.html" instead.

@johnbender

@phuongnd08

Is the form data-ajax=false? I'm assuming that it's not given that the url is being manipulated.

If it's not the current implementation of the xhr object in browsers doesn't support redirects so neither can we. There has been some discussion of supporting the workaround of supporting a higher level 200 response (280?) but that's not likely to happen soon.

@Azuo

Add data-url="page1.html" in page1.html?

@phuongnd08

@Azuo: You rock, man. It's exactly what's solves the case.

@jaspermdegroot
Collaborator

If I am not mistaken there is no issue here (anymore) so I am closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.