mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 15:17:27 +08:00
Fix wiki link path inconsistencies
If I access https://osu.ppy.sh/wiki/en/MAIN_PAGE or use any other capitalization my browser always redirects me to https://osu.ppy.sh/wiki/en/Main_page so I think Main_page is the correct capitalization. This might slightly reduce loading time? No idea though. Probably negligible if so.
This commit is contained in:
parent
92c4566287
commit
659118c043
@ -17,7 +17,7 @@ namespace osu.Game.Overlays.Wiki
|
||||
{
|
||||
public partial class WikiHeader : BreadcrumbControlOverlayHeader
|
||||
{
|
||||
private const string index_path = "Main_Page";
|
||||
private const string index_path = "Main_page";
|
||||
|
||||
public static LocalisableString IndexPageString => LayoutStrings.HeaderHelpIndex;
|
||||
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
public partial class WikiOverlay : OnlineOverlay<WikiHeader>
|
||||
{
|
||||
private const string index_path = @"main_page";
|
||||
private const string index_path = "Main_page";
|
||||
|
||||
public string CurrentPath => path.Value;
|
||||
|
||||
@ -161,7 +161,7 @@ namespace osu.Game.Overlays
|
||||
path.Value = "error";
|
||||
|
||||
LoadDisplay(articlePage = new WikiArticlePage($@"{api.WebsiteRootUrl}/wiki/",
|
||||
$"Something went wrong when trying to fetch page \"{originalPath}\".\n\n[Return to the main page](Main_Page)."));
|
||||
$"Something went wrong when trying to fetch page \"{originalPath}\".\n\n[Return to the main page](Main_page)."));
|
||||
}
|
||||
|
||||
private void showParentPage()
|
||||
|
Loading…
Reference in New Issue
Block a user