set the path of the login page to /<backofficeurl>/login

This commit is contained in:
Jacob Overgaard
2023-04-13 15:51:56 +02:00
parent 5b94b3051f
commit b8813aed3d

View File

@@ -104,6 +104,7 @@ public class ConfigureBackOfficeCookieOptions : IConfigureNamedOptions<CookieAut
// For any redirections that may occur for the back office, they all go to the same path
var backOfficePath = _globalSettings.GetBackOfficePath(_hostingEnvironment);
backOfficePath += "/login";
options.AccessDeniedPath = backOfficePath;
options.LoginPath = backOfficePath;
options.LogoutPath = backOfficePath;