Merge pull request #19246 from frenzibyte/fix-wiki-navigation

Fix wiki overlay not handling path redirection properly
This commit is contained in:
Dean Herbert
2022-07-20 20:08:11 +09:00
committed by GitHub
3 changed files with 49 additions and 10 deletions

View File

@ -11,15 +11,16 @@ namespace osu.Game.Online.API.Requests
{
public class GetWikiRequest : APIRequest<APIWikiPage>
{
private readonly string path;
public readonly string Path;
private readonly Language language;
public GetWikiRequest(string path, Language language = Language.en)
{
this.path = path;
Path = path;
this.language = language;
}
protected override string Target => $"wiki/{language.ToCultureCode()}/{path}";
protected override string Target => $"wiki/{language.ToCultureCode()}/{Path}";
}
}