From 611da29e1ee97a098155c06cbaa533045584c5aa Mon Sep 17 00:00:00 2001 From: TripleCamera Date: Sat, 11 May 2024 09:40:57 +0800 Subject: [PATCH] Fix main page name for wikis with base URL rewritten This is a very small change that has been tested on my computer, so I'll just use the web editor. --- src/MediaWiki.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MediaWiki.ts b/src/MediaWiki.ts index 30defed5..72317942 100644 --- a/src/MediaWiki.ts +++ b/src/MediaWiki.ts @@ -418,7 +418,7 @@ class MediaWiki { } // Base will contain the default encoded article id for the wiki. - const mainPage = decodeURIComponent(entries.base.split('/').pop()) + const mainPage = entries.mainpage const siteName = entries.sitename // Gather languages codes (en remove the 'dialect' part)