Skip to content

Commit 673f46d

Browse files
committed
Make sure all styles of old URL come through
1 parent 25fdccc commit 673f46d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arclight/config/routes.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@
2424
resources :static_finding_aid, only: [ :show ], path: "/findaid/static", controller: "static_finding_aid" do
2525
end
2626

27-
get "/findaid/*ark", to: "arks#findaid", constraints: { ark: /ark\:\/.+/ }
27+
get "/findaid/*ark/entire_text", to: "arks#findaid_static", constraints: { ark: /ark\:\/[0-9]]{5}\/[0-9a-zA-Z]+/ }
2828
get "/findaid/*ark/entire_text", to: "arks#findaid_static"
2929
get "/findaid/*ark", to: "arks#findaid", constraints: { ark: /ark\:\/.+/ }
3030

31+
get "/findaid/*ark", to: "arks#findaid", constraints: { ark: /ark\:\/.+/ }
32+
3133
get "/findaid", to: "static_finding_aid#index"
3234

3335

0 commit comments

Comments
 (0)