diff --git a/www/js/app.js b/www/js/app.js index f615469c..150128f4 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1787,7 +1787,7 @@ define(['jquery', 'zimArchiveLoader', 'util', 'uiUtil', 'cookies', 'abstractFile url = url.replace(/^[.\/]*([\S\s]+)$/, "$1"); //Some Stackexchange links (e.g. "duplicate" and "related" questions) are missing the "question" path, so add it back //Regex matches a pattern that looks like: 1234/what-is-mathematics.html and changes to: question/1234/what-is-mathematics.html - url = url.replace(/^(\d+\/[\s\S]+\.html?)$/ig, "question/$1"); + url = url.replace(/^(\d+\/[\s\S]+\.html?)$/i, "question/$1"); $(this).on('click', function (e) { var decodedURL = decodeURIComponent(url);