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 1932 posts 6722 karma points MVP 3x 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 2348 posts 14896 karma points MVP 9x 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 1932 posts 6722 karma points MVP 3x 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 1932 posts 6722 karma points MVP 3x 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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies