Front-end searching: Automatically redirect when only 1 result When performing a search on the front-end, is it possible to have two different behaviors, depending on the number of results?


With more than one result, show the normal "results" page.
With only a single result, automatically redirect to that entry page.
Redirecting to the first result is simple...

{% if results|length == 1 %}
    {% redirect results[0].url %}
{% endif %}