When I get a 404 page, the URL in the browser remains pointing to the page I was trying to reach. ie. the address bar will show domain.com/unreachable-page not domain.com/404. Which is fine and, I believe, correct behaviour. However…
That being the case, is there any way to target the 404 template with a conditional? (In this case, from within an embed or snippet that appears on every template -- I wish to have some different content for the 404 template). It would seem that segments are not going to be much help here, so I wondered if there is another way.
Example:
{if is_404_template}
// Display something
{/if}
Thanks.