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

Accept everything as the default routing constraint #2084

Merged
merged 2 commits into from May 3, 2022

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Mar 13, 2019

No description provided.

@@ -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 = /.+/
Copy link
Member

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?

Copy link
Member Author

@jcoyne jcoyne Mar 14, 2019

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 94.153% when pulling 1db14d7 on improved_constraint into e193fbf on release-6.x.

@cbeer cbeer moved this from Backlog to Changes requested in Blacklight Summit Triage Board Nov 9, 2021
@cbeer cbeer added this to the 6.x milestone Nov 9, 2021
@cbeer cbeer moved this from Changes requested to Backports in Blacklight Summit Triage Board Nov 9, 2021
@barmintor
Copy link
Contributor

Added 2 routing specs to verify per @cbeer's review that format in the URL is not interfered with. Merging to release-6.x

@barmintor barmintor merged commit d36d29e into release-6.x May 3, 2022
@barmintor barmintor deleted the improved_constraint branch May 3, 2022 22:32
@cjcolvar cjcolvar mentioned this pull request Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants