diff --git a/backend/src/Designer/Controllers/AnsattPortenController.cs b/backend/src/Designer/Controllers/AnsattPortenController.cs index a92945661fb..8feff836cf4 100644 --- a/backend/src/Designer/Controllers/AnsattPortenController.cs +++ b/backend/src/Designer/Controllers/AnsattPortenController.cs @@ -15,7 +15,7 @@ public class AnsattPortenController(IAuthenticationService authService) : Contro { [Authorize(AnsattPortenConstants.AnsattportenAuthorizationPolicy)] [HttpGet("login")] - public async Task Login([FromQuery] string redirectTo) + public async Task Login([FromQuery(Name = "redirect_to")] string redirectTo) { await Task.CompletedTask; if (!Url.IsLocalUrl(redirectTo))