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

Use regex route for content pages #3411

Merged
merged 6 commits into from Feb 14, 2024

Conversation

aleksip
Copy link
Contributor

@aleksip aleksip commented Feb 14, 2024

This changes the content page route type to regex. It seems that literal segments are always case-sensitive, but using regex we can allow both /Content and /content.

@demiankatz demiankatz added this to the 10.0 milestone Feb 14, 2024
Copy link
Member

@demiankatz demiankatz left a comment

Choose a reason for hiding this comment

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

Thanks, @aleksip, makes sense to me (though of course the part of the URL after "content" is still going to be case-sensitive in environments with case-sensitive file systems).

I've added a test to confirm the behavior and prevent regressions.

@demiankatz demiankatz merged commit ef6c236 into vufind-org:dev Feb 14, 2024
7 checks passed
@demiankatz demiankatz deleted the regex-content-route branch February 14, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants