Skip to content

Commit 4ab2b19

Browse files
committed
Bookmarks use the primary resource id in the URL, so they should use the same constraints
1 parent 884d23a commit 4ab2b19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/blacklight/routes.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ def bookmarks(_)
6666
get "bookmarks/sms", :as => "sms_bookmarks"
6767
post "bookmarks/sms"
6868
get "bookmarks/citation", :as => "citation_bookmarks"
69-
resources :bookmarks
69+
70+
args = {}
71+
args[:constraints] = options[:constraints] if options[:constraints]
72+
resources :bookmarks, args
7073
end
7174
end
7275

0 commit comments

Comments
 (0)