EE 6, noticing that when the 404 template is returned due to a bad URL (not a redirect tag inside an exp:channel:entries tag with require_entry, for example), that the original URL remains in the browser, but the 404 template content is displayed.
I have a site with ads that are displayed globally.. I want to prevent the ads from being displayed on that 404 page.. Initially, I approached it with a conditional like :
{if segment_1 != "404"}But, since the 404 doesn’t redirect (change the URL), that approach won’t work.. Any thoughts of how I Can determine if the 404 template is being displayed, so I can do a similar conditional around the google ad code?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.