We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem, Runway

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]
Martin Underhill

Martin Underhill 5 points

  • 1 year ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

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 :)