[Archivesspace_Users_Group] Adding Route to PUI - tip

Joshua D. Shaw Joshua.D.Shaw at dartmouth.edu
Wed Jan 12 09:00:39 EST 2022


Since this just tripped me up, I figured I'd share with the group.

If you are looking to add a route to the PUI in a plugin, you cannot use a two part path for your new route since this existing route will catch any of those:

get ":obj_type/:slug_or_id" => 'objects#show'

https://github.com/archivesspace/archivesspace/blob/a2715dd9bf4d2c11671f2034d697a6c06918f39d/public/config/routes.rb#L88

jds

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20220112/e33fc5a8/attachment.html>


More information about the Archivesspace_Users_Group mailing list