Using a case insensitive constraint in routes broke slugs with periods, see d288f192fa , returned this code because it's being handled by similar code in the controllers. Issue resolved, and is working perfectly.
This commit is contained in:
parent
d90c454118
commit
5c92b666c3
@ -16,8 +16,8 @@ BikeBike::Application.routes.draw do
|
|||||||
get 'new' => 'administration#new', as: :new_conference
|
get 'new' => 'administration#new', as: :new_conference
|
||||||
post 'save' => 'administration#save', as: :save_conference
|
post 'save' => 'administration#save', as: :save_conference
|
||||||
|
|
||||||
# Public routes with slug normalization
|
# Slug with regex allowing dots, unicode, etc. (original working behavior)
|
||||||
scope ':slug', constraints: SlugConstraint.new do
|
scope ':slug', constraints: { slug: /[^\/]+/ } do
|
||||||
root 'conferences#view', as: :conference
|
root 'conferences#view', as: :conference
|
||||||
|
|
||||||
# Registration
|
# Registration
|
||||||
@ -66,8 +66,8 @@ BikeBike::Application.routes.draw do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Admin routes (without slug normalization)
|
# Admin routes (same regex constraint as public routes)
|
||||||
scope ':slug' do
|
scope ':slug', constraints: { slug: /[^\/]+/ } do
|
||||||
get 'edit' => 'administration#edit', as: :edit_conference
|
get 'edit' => 'administration#edit', as: :edit_conference
|
||||||
|
|
||||||
# Administration
|
# Administration
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user