diff --git a/Source/ProofOfConcept/Program.cs b/Source/ProofOfConcept/Program.cs index 4f12062..42071b2 100644 --- a/Source/ProofOfConcept/Program.cs +++ b/Source/ProofOfConcept/Program.cs @@ -238,7 +238,7 @@ if (app.Environment.IsDevelopment()) logger.LogCritical("User has access_token: {access_token} and refresh_token: {refresh_token}", access_token, refresh_token); if (String.IsNullOrEmpty(access_token)) - return Results.RedirectToRoute("/Authorize"); + return Results.LocalRedirect("/Authorize"); HttpClient client = httpClientFactory.CreateClient(); client.BaseAddress = new Uri("tesla_command_proxy");