Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match Genius paths #29

Merged
merged 5 commits into from
Apr 19, 2024
Merged

Match Genius paths #29

merged 5 commits into from
Apr 19, 2024

Conversation

Insprill
Copy link
Owner

@Insprill Insprill commented Apr 3, 2024

Currently, we have our own schema for paths, with Genius paths being passed in query parameters. This makes it complicated to set automatic redirects from Genius to Intellectual and adds unnecessary complexity to the code.

This will need some testing to ensure that there are no edge cases that break the links and that no links were missed.
We also need a way to return a proper 404 page, since the lyric pattern now matches all paths. We might be able to only match paths that end in -lyrics, or we'll have to bail and return our own 404 if genius returns a 404.

We should also try to coordinate the release of this with LibRedirect to minimize the damage from this.

Insprill added 4 commits April 3, 2024 02:08
Was only used to validated paths passed as query parameters. Now that we match Genius URLs, it's no longer needed
@Insprill Insprill force-pushed the feature/genius-paths branch from fd527a2 to 5c4b8a0 Compare April 19, 2024 21:00
@Insprill Insprill force-pushed the feature/genius-paths branch from 5c4b8a0 to bfd1b09 Compare April 19, 2024 21:10
@Insprill Insprill marked this pull request as ready for review April 19, 2024 21:10
@Insprill Insprill merged commit da03c1e into master Apr 19, 2024
14 checks passed
@Insprill Insprill deleted the feature/genius-paths branch April 19, 2024 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant