instantclick icon indicating copy to clipboard operation
instantclick copied to clipboard

Redirects don't change the URL

Open Kronuz opened this issue 11 years ago • 6 comments

if a page a link opens redirects to other page, it doesn't show the final url in the url bar ...is there a way to fix that?

Kronuz avatar Aug 09 '14 20:08 Kronuz

There’s currently no way to fix that, sorry.

It’s a limitation of Ajax, it can’t give you the correct URL after a redirect. The solution I have in mind for this problem would be to send a header server-side with the page’s URL. InstantClick would then use that URL.

dieulot avatar Aug 11 '14 15:08 dieulot

I'm interested in this. Is the server-side header thing implemented?

fiatjaf avatar Jul 24 '15 22:07 fiatjaf

It still isn’t.


Maybe it’ll be done with a meta tag or something instead of a header, as it’s easier to deal with, and there may be cases where someone doesn’t have control over their header (though I can’t think of one where you have a redirect too, but the fact that it’s easier is reason enough to go that way).

dieulot avatar Sep 04 '15 08:09 dieulot

Same question. I think a server header is OK.

fy0 avatar Oct 09 '15 15:10 fy0

I'm not sure if anything has changed about the XHR api since 2015, but I'm using Chromium on Linux. I fixed the issue by going to line 748, where changePage is being called. I changed $url to $xhr.responseURL. It works perfectly with my server.

I'll submit a pull request if I can confirm it works with all other browsers.

skylaptops avatar Jul 06 '17 01:07 skylaptops

This is 2014 issue, 5 years and this bug is still here...?

algj avatar Nov 30 '19 17:11 algj