From 646a2456582f0e594858bb8536a8413dc630165b Mon Sep 17 00:00:00 2001 From: mossroy Date: Wed, 10 Jul 2013 22:52:24 +0200 Subject: [PATCH] Small fix for links to articles prefixed by ./ , such as links to special pages of Wikipedia (categories etc). --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 8a023c1a..1750edcb 100644 --- a/js/app.js +++ b/js/app.js @@ -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);