diff --git a/Bonobo.Git.Server/Controllers/RepositoryController.cs b/Bonobo.Git.Server/Controllers/RepositoryController.cs index 81c4c61a0..34d6cfaf3 100644 --- a/Bonobo.Git.Server/Controllers/RepositoryController.cs +++ b/Bonobo.Git.Server/Controllers/RepositoryController.cs @@ -41,7 +41,7 @@ public ActionResult Index(string sortGroup = null, string searchString = null) var unorderedRepositoryDetails = GetIndexModel().ToList(); if (!User.Identity.IsAuthenticated && !unorderedRepositoryDetails.Any()) { - return RedirectToAction("Logon", "Home", new { returnUrl = Url.Action("index", "Home") }); + return RedirectToAction((AuthenticationProvider is WindowsAuthenticationProvider ? "WindowsLogin" : "Logon"), "Home", new { returnUrl = Url.Action("index", "Home") }); } if (!string.IsNullOrEmpty(searchString)) {