I'd like to only load some scripts for 1 specific page with the Url /projects/
.
Currently I'm using:
{% if craft.app.request.segments|first == 'projects' %}
// load scripts
{% endif %}
This works.
However, I also have pages with the Url /projects/project-name
which should not load the script.
How can you perform a conditional test for just the Url /projects/
?
Thanks
{% if craft.app.request.segments|last == 'projects' %}
did the trick