Skip to content

Commit

Permalink
Fix main page name for wikis with base URL rewritten
Browse files Browse the repository at this point in the history
This is a very small change that has been tested on my computer, so I'll just use the web editor.
  • Loading branch information
TripleCamera authored and kelson42 committed Jun 24, 2024
1 parent ecc3e7e commit 611da29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MediaWiki.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 611da29

Please sign in to comment.