Update src/Umbraco.Web.Common/Extensions/LinkGeneratorExtensions.cs

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Shannon Deminick
2020-05-18 15:15:53 +10:00
committed by GitHub
parent 5dc0dfb5ad
commit 074a174139

View File

@@ -22,7 +22,7 @@ namespace Umbraco.Extensions
backOfficeControllerType = Assembly.Load("Umbraco.Web.BackOffice")?.GetType("Umbraco.Web.BackOffice.Controllers.BackOfficeController");
if (backOfficeControllerType == null) return "/"; // this would indicate that the installer is installed without the back office
}
catch (Exception)
catch
{
return "/"; // this would indicate that the installer is installed without the back office
}