MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 31: | Line 31: | ||
if (titleText.length > 0 && $(this).find('a').length === 0) { | if (titleText.length > 0 && $(this).find('a').length === 0) { | ||
var link = $('<a>') | var link = $('<a>') | ||
.attr('href', ' | .attr('href', '/' + encodeURIComponent(titleText.replace(/ /g, '_'))) | ||
.attr('target', '_blank') | .attr('target', '_blank') | ||
.text(titleText); | .text(titleText); | ||