mirror of https://github.com/ppy/osu
Fix beatmap discussion links wrongly leading to beatmap page
This commit is contained in:
parent
8b2110c048
commit
6fda5e569a
|
@ -154,6 +154,10 @@ public static LinkDetails GetLinkDetails(string url)
|
|||
case "beatmapsets":
|
||||
case "d":
|
||||
{
|
||||
if (mainArg == "discussions")
|
||||
// handle discussion links externally for now
|
||||
return new LinkDetails(LinkAction.External, url);
|
||||
|
||||
if (args.Length > 4 && int.TryParse(args[4], out var id))
|
||||
// https://osu.ppy.sh/beatmapsets/1154158#osu/2768184
|
||||
return new LinkDetails(LinkAction.OpenBeatmap, id.ToString());
|
||||
|
|
Loading…
Reference in New Issue