Search using Slug as query parameter I created Search that uses entry slug, but it fails if the slug has more than one dash "-" in it. Has anyone come across this and/or have any ideas for getting around it?

I need to use the slug because they are unique within a section.
If you know your q variable should be a slug, you can use the .slug query parameter:

{# Get the requested entry slug from the URL #}
{% set requestedSlug = craft.app.request.getSegment(3) %}

{# Fetch the entry with that slug #}
{% set entry = craft.entries()
    .slug(requestedSlug|literal)
    .one() %}


More on how to use this in the Craft 3 docs.

I have personally had some unexpected results using Craft's built-in search.