Maintenance page when in upgrade state (#13551)
* Added functionality to show maintenance page and fixed issues with showing custom api controllers and 404 page, when umbraco had been in install or upgrade state * Fixed Tests * Fixed typo * Fixed issue with login screen redirecting to website when in upgrade state, instead of backoffice
This commit is contained in:
@@ -33,6 +33,7 @@ public class GlobalSettings
|
||||
internal const bool StaticSanitizeTinyMce = false;
|
||||
internal const int StaticMainDomReleaseSignalPollingInterval = 2000;
|
||||
private const bool StaticForceCombineUrlPathLeftToRight = true;
|
||||
private const bool StaticShowMaintenancePageWhenInUpgradeState = true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value for the reserved URLs (must end with a comma).
|
||||
@@ -252,4 +253,7 @@ public class GlobalSettings
|
||||
/// </example>
|
||||
[DefaultValue(StaticForceCombineUrlPathLeftToRight)]
|
||||
public bool ForceCombineUrlPathLeftToRight { get; set; } = StaticForceCombineUrlPathLeftToRight;
|
||||
|
||||
[DefaultValue(StaticShowMaintenancePageWhenInUpgradeState)]
|
||||
public bool ShowMaintenancePageWhenInUpgradeState { get; set; } = StaticShowMaintenancePageWhenInUpgradeState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user