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

       Web browser: ---
             Bug #: 35045
           Summary: Use history.replaceState to rewrite redirect urls
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Redirects
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Modern browsers include a history api including pushState/popState/replaceState
support. Using these apis one can dynamically alter the path portion of the
address in the address bar without leaving the page. Additionally if you use
replaceState you don't create side effects in forward/back history.

Using this api it's possible to make [[Wikipedia:Redirection]]'s
/wiki/Redirection dynamically change to /wiki/Redirect in the user's browser.

I've been experimenting with a script to do that:
https://en.wikipedia.org/wiki/User:Dantman/vector.js

We should consider fine tuning code to do this and including it in core.

>From the user perspective this would have a similar effect to using 301s. It
would make end users end up copying the canonical url instead of the redirect's
url.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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