Decoding when checking for main page match
parent
ae3d5ca2ac
commit
b681c9b523
|
@ -185,7 +185,7 @@ function commonFunctionGetNewURL(originURL, matchingSite) {
|
|||
let newURL = '';
|
||||
if (originArticle) {
|
||||
// Check if main page
|
||||
if (originArticle === matchingSite['origin_main_page']) {
|
||||
if (decodeURIComponent(originArticle) === matchingSite['origin_main_page']) {
|
||||
switch (matchingSite['destination_platform']) {
|
||||
case 'dokuwiki':
|
||||
destinationArticle = '';
|
||||
|
|
|
@ -186,7 +186,7 @@ function replaceSearchResults(searchResultContainer, site, link) {
|
|||
indieResultFavicon.src = extensionAPI.runtime.getURL('favicons/' + site.language.toLowerCase() + '/' + site.destination_icon);
|
||||
indieResultFaviconContainer.append(indieResultFavicon);
|
||||
let indieResultText = document.createElement('span');
|
||||
if (originArticle && originArticle !== site['origin_main_page']) {
|
||||
if (originArticle && decodeURIComponent(originArticle) !== site['origin_main_page']) {
|
||||
let destinationArticleTitle = removeSubstringIfAtEnd(destinationArticle, site['destination_content_suffix']).replace(site['destination_content_prefix'], '').replaceAll('_', ' ');
|
||||
|
||||
// Decode article
|
||||
|
|
Loading…
Reference in New Issue