Jump to content

Photo

404 Page sometimes not shown within main website style


  • Please log in to reply
1 reply to this topic

#1 altmoola

altmoola

    Advanced Member

  • Members
  • PipPipPip
  • 66 posts

Posted 22 November 2019 - 01:56

How do I make it so that the 404 error pages for File not found show within the actual style of the website instead of as a separate page, like the second image?

 

WJoYr5G.png

 

aQKQ5zk.png



#2 altmoola

altmoola

    Advanced Member

  • Members
  • PipPipPip
  • 66 posts

Posted 24 December 2019 - 21:23

This is due to the ErrorController. If you want it to show the normal layout for all 404s, you can modify the ErrorController.NotFound to return the NotFound view.