Check if I'm on 404 error page #4331
-
How do I check if I'm on the 404 error page? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can probably check your page's template, like this:
|
Beta Was this translation helpful? Give feedback.
-
Like Duncan said, but use a dot. You can always check it by doing |
Beta Was this translation helpful? Give feedback.
Like Duncan said, but use a dot.
{{ if current_template !== "errors.404" }}
You can always check it by doing
{{ current_template }}
.