mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 12:01:15 -04:00
Small fix for links to articles prefixed by ./ , such as links to special pages of Wikipedia (categories etc).
This commit is contained in:
parent
ff2c085bc6
commit
646a245658
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user