Skip to content

Check if I'm on 404 error page #4331

Answered by jasonvarga
pathly-dev asked this question in Q&A
Discussion options

You must be logged in to vote

Like Duncan said, but use a dot. {{ if current_template !== "errors.404" }}

You can always check it by doing {{ current_template }}.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@pathly-dev
Comment options

@pathly-dev
Comment options

Comment options

You must be logged in to vote
1 reply
@pathly-dev
Comment options

Answer selected by jasonvarga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants