Hi there,
I want to have a few different 404 pages, depending on where the customer went wrong and identify the cases via the URL.
Let’s say someone accesses a page myurl.com/234234234234324/orders/ I want to catch this case in an if statement
{% if handle contains '/orders' %}
Test
{% else %}
### {{ '404.general.title' | t }}
{{ '404.general.content' | t }}
{{ '404.general.button' | t }}
{% endif %}
Now accessing the URL myurl.com/234234234234324/orders/ should give me back “Test”, which it doesn’t.
Maybe the order pages don’t have a handle?
How else could I access the URL in this case?
Thanks,
Patrick