Inhalte aufrufen

Profilbild

404 Page sometimes not shown within main website style


  • Bitte melden Sie sich an, um eine Antwort zu verfassen.
1 Antwort zu diesem Thema

#1 altmoola

altmoola

    Advanced Member

  • Members
  • PunktPunktPunkt
  • 66 Beiträge

Geschrieben: 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
  • PunktPunktPunkt
  • 66 Beiträge

Geschrieben: 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.