13,752
edits
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
var talkUrl = talkTab.attr('href').replace('index.php?title=', '').replace(namespace, 'User').replace('&action=edit&redlink=1', ''); | var talkUrl = talkTab.attr('href').replace('index.php?title=', '').replace(namespace, 'User').replace('&action=edit&redlink=1', ''); | ||
var subIndex = talkUrl.indexOf('/', 1); | var subIndex = talkUrl.indexOf('/', 1); | ||
if (subIndex) | if (subIndex > 0) | ||
talkUrl = talkUrl.substring(0, subIndex); | talkUrl = talkUrl.substring(0, subIndex); | ||
talkTab.attr('href', talkUrl); | talkTab.attr('href', talkUrl); | ||
} | } | ||
}); | }); |