Forum
returns name of Collection
I've just noticed my search results are broken! The <perch:search id="result_url" />
tag is returning 'Resources', which is the name of the collection (I'm using Runway), rather than '/resources/the-name-of-my-resource'. The slug
is returning the page's slug when I use <perch:showall /> but that's just the slug, not the path/url.
Is this something I need to configure as a route somewhere? I've got the following routes set up on the Search page:
search/[slug:q]
search/[slug:q]/page/[i:page]
What value have you configured in the collection's options?
Oooh! Didn't think of that :) I've gone into the collection's options and set the 'URL for single items' to
/resources/{slug}
. Works a treat! Thanks for your help :)