I have a few pages in my site that aggregate information, for example, a single awards page that gets all the entries in an awards channel. Single awards entries don't have their own URLs.
How do I handle cases like this in search results?
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityI guess I'll answer my own question. Use a conditional in search results and overwrite the value of the entry's URL:
{% if getSection() == 'mySection' %}
{% set entry.url = '/mySectionUrl' %}
{% endif %}