Content deleted Content added
Attempt to make it work with Special:PrefixIndex/Foo |
fix |
||
Line 99:
var pathSplit = ___location.pathname.split('/');
if (pathSplit.length<3 || pathSplit[2]!="Special:PrefixIndex") return;
var
var gapnamespace = Namespace[titleSplit[0].toUpperCase()];
var gapprefix = pathSplit.splice(3).join('/');▼
if ( typeof(gapnamespace)=='undefined' )
{
var gapnamespace = Namespace.MAIN;
▲ var gapprefix = pathSplit.splice(3).join('/');
}
else
{
pathSplit = pathSplit.splice(4);
pathSplit.splice(0,0,titleSplit.splice(1).join(':'));
var gapprefix = pathSplit.join('/');
}
}
|