Small fix for links to articles prefixed by ./ , such as links to special pages of Wikipedia (categories etc).

This commit is contained in:
mossroy 2013-07-10 22:52:24 +02:00
parent ff2c085bc6
commit 646a245658

View File

@ -230,7 +230,7 @@ define(function(require) {
// It's a link to another article : add an onclick event to go to this article
// instead of following the link
if (url.length>=2 && url.substring(0, 2) === "./") {
url = url.substring(2,url.length-2);
url = url.substring(2);
}
$(this).on('click', function(e) {
var titleName = decodeURIComponent(url);