Add support for /s/ and /beatmapsets/ urls #79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/beatmapsets-url"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This was needed for the -devserver url redirects to work again. When -devserver was introduced, peppy also changed the url of beatmap links, both for chat (/np) and the "open website" button in the song selection.
Tested to be working on a local instance, doublecheck appreciated. CI Seems to be failing for whatever reason
requested review from @Nyo
assigned to @Lithium
added 1 commit
7ba12881- remove unneeded logCompare with previous version
added 1 commit
ee1645e5- restore agpl warningCompare with previous version
update: not 100% working as of now, evening out small bugs
added 1 commit
7cd97102- Re-route ranking requests to make space for /beatmapsCompare with previous version
Should work fully now
Those are the redirect from old links, they should be pretty much unused but the numbers should be kept as-is or it will break all the legacy redirects.
I think this should be
/rank_requestinstead ofrank_requestfor simplePage.HandlerCan this be simplified to something like:
?
https://go.dev/play/p/_pXb_fswzBq
Not sure and I can't remember what library is being used for the router, but shouldn't this be:
instead? 🤔
Great work! I've left a couple of comments, please test them before applying suggestions.
CI failure is normal as PRs do not have access to secrets and there are no tests either so it's not very helpful anyways.
Gotcha
ur right. Me Pepega
Seems to work, but has been added in a newer version of go (we were using 1.14, added in 1.20). Pulling the version wouldnt be too bad though, at least i'd assume so.
its the default Gin router, and given that the
/:bidpart in the osu url is optional (e.g., some ingame buttons dont generate the link with the bid)/*bidis the syntax for an optional param named bidchanged this line in version 5 of the diff
changed this line in version 5 of the diff
changed this line in version 5 of the diff
added 1 commit
d544e45d- Apply review fixesCompare with previous version
My bad I think this should be
Thank you just one small think left I think. I will test it out later before merging.
https://go.dev/play/p/Zpuj6ktngLl
With
1it would just return the whole string for me..changed this line in version 6 of the diff
changed this line in version 6 of the diff
added 2 commits
abd5d937- Simplify bid and sid from context params4effc0d6- remove unneeded routeCompare with previous version
so... turns out the # functions as the windowlocaiton-hash in the router and everything behind it gets cut off anyway.
Ready for your testing 👍
resolved all threads
is gone now? Is this wanted?
wanted since this was the catch-attempt for "beatmapsets/123#osu/id", where #osu/id is interpreted as the location-hash and gets entirely ignored by gin, see my last discord rant.
resolved all threads
Oh the WHOLE thing gets interpreted as location hash?? :face_palm: okay then 😭
resolved all threads
added 2 commits
0ca20a6c- Beatmaps: Fix panic when unknown beatmap set is usedc7f2b59e- Update gulp bundleCompare with previous version
Fixed a possible index out of bound and LGTM. Thanks for this 🙏
approved this merge request
mentioned in commit
0210d24577