https://bugzilla.wikimedia.org/show_bug.cgi?id=70962

--- Comment #7 from Bartosz DziewoƄski <[email protected]> ---
(In reply to Waldir from comment #6)
> Why not use pushState() rather than replaceState()? IIUC, that would rewrite
> the url while only appending --not replacing-- the history entry, so going
> back to the redirect url would be possible.

I don't think that's a good idea given how much everyone hates sites that
"break the back button". Backing out of a page which happened to be a redirect
shouldn't require two clicks.


> Or even better, we could use replaceState() to change
> https://de.wikipedia.org/w/index.
> php?title=Aeropuerto_Internacional_Jorge_Ch%C3%A1vez to
> https://de.wikipedia.org/w/index.
> php?title=Aeropuerto_Internacional_Jorge_Ch%C3%A1vez&redirect=no and then
> pushState() to append https://de.wikipedia.org/wiki/Flughafen_Lima to the
> history. So then we could "return" to the redirected page by pressing the
> back button, even though we were never actually there.

The browser will not reload the page by itself, we'd need to reload all of the
content or trigger page refresh from JS. This still breaks the back button
behavior for readers who don't care what a redirect is.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to