Jump to content

Nexus URL change broke all links to nexus on the internet.


orbenn

Recommended Posts

As I'm sure some of you have noticed, URLs to skyrim mods on nexus used to be of the format:
skyrim.nexusmods.com/mods/[modnumber]

Now they are of the format:
nexusmods.com/skyrim/mods/[modnumber]


This has caused every link on the internet that references a mod for skyrim to break.
Web team: please add a redirector for the old URL format so that old links are not broken!


Thanks

Edited by orbenn
Link to comment
Share on other sites

you can use greasemonkey or tampermonkey to temp fix the links until nexus manage to fix their dns stuff.

// ==UserScript==
// @name        Redirect skyrim nexusmods
// @namespace   Nix
// @description nexus domain change fix
// @include     http://*.*
// @include     https://*.*
// @version     1
// @grant       none
// ==/UserScript==

document.addEventListener("DOMContentLoaded", replaceLinks, false );

if( document.readyState === "complete" ) {
    replaceLinks();
}

function replaceLinks() {
    Array.forEach( document.links, function(a) {
        a.href = a.href.replace( "skyrim.nexusmods.com", "nexusmods.com/skyrim" );
    });
}

this works fine for skyrim and is easily adapted for other games.

Edited by Nixsy
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...