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

Fix search page crash when search term contains slash #894

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

peolic
Copy link
Contributor

@peolic peolic commented Jan 7, 2025

The search page currently crashes when provided with a URL, which is needed for the search-by-url feature.

Uses https://reactrouter.com/6.8.1/route/route#splats
This looks a little weird with the asterisk, but it tells react-router to stop parsing the path, and just make the rest of it one single parameter, as is needed for the search page..

Copy link
Collaborator

@InfiniteStash InfiniteStash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'd forgotten this was even implemented.

@InfiniteStash InfiniteStash merged commit 6dbce61 into stashapp:master Jan 7, 2025
3 checks passed
@peolic peolic deleted the fix-searching-links branch January 8, 2025 00:22
@peolic peolic mentioned this pull request Jan 8, 2025
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.

2 participants