Forum:Redirect rewriting

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Forums: Yew Grove > Redirect rewriting
Archive
This page or section is an archive.
Please do not edit the contents of this page.
This thread was archived on 12 June 2017 by Liquidhelium.

A simple script I wrote a little while back is for rewriting URLs if it's a redirect and replacing the redirect with the proper URL in your browser history. To test it, enable JS test mode using the sidebar module on [[MediaWiki:Common.js]] (monobook users can click [{{fullurl:MediaWiki:Common.js|useskin=oasis}} here] to see it) and go to page via a redirect such as KBD. After a second, you should notice that the URL is now /wiki/King_Black_Dragon instead of the expected KBD. You may need to go into debug mode to avoid caching, which you can do with ?debug=1, e.g. https://runescape.wiki/w/KBD?debug=1.

I borrowed the idea from wikipedia, e.g. wikipedia:Obama, and think it looks a bit more professional and avoids people noticing redirects if they find them from searching, e.g. King black, kk, etc. Ideally it'd be handled by search suggestions, but they've been semi-broken for years.

I addition to seeing if you like it, I'd appreciate it if people could have a play with it to see if it breaks in weird circumstances.

Discussion

Support - as cqm 08:20, 2 Jun 2017 (UTC) (UTC)

Support - as Iiii I I I 08:23, June 2, 2017 (UTC)

Support - Farming-icon.png Salix of Prifddinas (Talk) Prifddinas lodestone icon.png 09:38, June 2, 2017 (UTC)

Support - Oh that's neat actually, well done, have a fruit basket. User_talk:Fswe1 Fswe1 Brassica Prime symbol.png 11:11, June 2, 2017 (UTC)

Support - pjJ4pBM.png Abyssal vine whip.png 13:29, June 2, 2017 (UTC)

Support- 1wDmkih.png  Manpaint of the RPU (t)(c) 15:49, June 3, 2017 (UTC)

Support - jayden 10:58, June 7, 2017 (UTC)

Closed - The script will be implemented. --LiquidTalk 12:33, June 12, 2017 (UTC)