mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 12:01:15 -04:00
Small fixes for links inside an article
This commit is contained in:
parent
ecf48a0d41
commit
fb8408e878
@ -164,12 +164,11 @@ define(function(require) {
|
||||
title = title[0];
|
||||
if (title.fileNr == 255) {
|
||||
localArchive.resolveRedirect(title, readArticle);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
localArchive.readArticle(title, displayArticleInForm);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Display the the given HTML article in the web page,
|
||||
@ -190,6 +189,9 @@ define(function(require) {
|
||||
else if (url.substring(0,4) === "http") {
|
||||
// It's an external link : do nothing
|
||||
}
|
||||
else if (url.substring(0,2) === ".." || url.substring(0,4) === "./..") {
|
||||
// It's a link to another language : TODO redirect to the online article?
|
||||
}
|
||||
else {
|
||||
// It's a link to another article : add an onclick event to go to this article
|
||||
// instead of following the link
|
||||
|
Loading…
x
Reference in New Issue
Block a user