Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    May 09, 2021 @ 09:06
    Huw Reddick
    0

    Our.Umbraco.MaintenanceMode not delivering maintenance page when CustomErrors set to On

    Anyone know how to get around this and show the page rather than just the 503 message ?

  • Kevin Jump 2311 posts 14697 karma points MVP 7x c-trib
    May 09, 2021 @ 09:22
    Kevin Jump
    0

    Hi,

    Haven't take a look in a while , i suspect its a browser thing, where when you return certain codes, the browser just displays a generic error.

    that being said, we could/should probably update it to return a different error because you can't make people change settings 😜 (maybe based on a setting in the web.config) - not a massive code job - could take a look today/tomorrow, or happy to accept a PR.

    Kevin

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    May 09, 2021 @ 09:25
    Huw Reddick
    100

    worked out how to get it to display, just add the following line to the custom Errors section

    <error statusCode="503"  redirect="/MaintenancePage" />
    
  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    May 09, 2021 @ 09:28
    Huw Reddick
    0

    Hi Kevin,

    I think the status code you are setting is correct TBH, so don't think that it should be changed, and the problem is resolved by a simple change to custom errors section.

Please Sign in or register to post replies

Write your reply to:

Draft