diff --git a/src/routes/(app)/mappools/[id]/+page.server.ts b/src/routes/(app)/mappools/[id]/+page.server.ts index 615bad6..d8f5dfe 100644 --- a/src/routes/(app)/mappools/[id]/+page.server.ts +++ b/src/routes/(app)/mappools/[id]/+page.server.ts @@ -126,8 +126,10 @@ export const actions: Actions = { const urlMatch = beatmapId.match(/beatmaps\/(\d+)/); const setMatch = beatmapId.match(/beatmapsets\/\d+#\w+\/(\d+)/); + const shortMatch = beatmapId.match(/\/b\/(\d+)/); if (urlMatch) beatmapId = urlMatch[1]; else if (setMatch) beatmapId = setMatch[1]; + else if (shortMatch) beatmapId = shortMatch[1]; if (!/^\d+$/.test(beatmapId)) { return { error: 'Invalid beatmap ID' };