Conditional display of page content on 404 error page

I followed the tutorial and created a 404 page as per this post:

I do however want to hide sections of the layout page when the 404 page displays.

I cannot use the below as the page is not redirected to the /404 path:

<div id="conditional22" is="dmx-if" dmx-bind:condition="browser1.location.pathname!='/404'"></div>

Is there a "wildcard" I can use as the path part to represent a link not found in my routes?

Why not just use a different layout page for the 404 page?

1 Like

Thanks, will do. I always try to minimise the amount of code, but will do.

1 Like