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
Accept everything as the default routing constraint #2084
Conversation
@@ -45,7 +45,7 @@ class Engine < Rails::Engine | |||
|
|||
config.routes = OpenStruct.new | |||
# Set identifier_constraint to enforce a format for the document identifiers | |||
config.routes.identifier_constraint = /[\w-]+/ | |||
config.routes.identifier_constraint = /.+/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this break anyone using URLs with extensions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explain what you mean by that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep in mind this is only for the "track" route: https://github.com/projectblacklight/blacklight/blob/v6.20.0/config/routes.rb#L10
…fig.identifier_constraint doesn't interfere
1db14d7
to
849ad04
Compare
Added 2 routing specs to verify per @cbeer's review that format in the URL is not interfered with. Merging to |
No description provided.