Skip to content

Commit afbcfda

Browse files
committed
Remove routing for %2F style urls [arclight]
1 parent 681ef26 commit afbcfda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arclight/config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
concern :exportable, Blacklight::Routes::Exportable.new
2727
concern :hierarchy, Arclight::Routes::Hierarchy.new
2828

29-
ark = /ark:(\/|%2[fF])\d{5}(\/|%2[fF])[0-9a-zA-Z]+/
29+
ark = /ark:\/\d{5}\/[0-9a-zA-Z]+/
3030
optional_component = /_?[^\/]*/
3131
not_ark = /(?!ark\:)[^\/]+/
3232
resources :solr_documents, only: [ :show ], path: "/findaid", controller: "catalog", constraints: { id: /(#{ark}#{optional_component})|(#{not_ark})/ } do

0 commit comments

Comments
 (0)