Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect error path in some pages #885

Merged
merged 1 commit into from
May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hosts/AspNetIdentity/Pages/Ciba/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task<IActionResult> OnGet(string id)
if (LoginRequest == null)
{
_logger.LogWarning("Invalid backchannel login id {id}", id);
return RedirectToPage("/home/error/index");
return RedirectToPage("/Home/Error/Index");
}

return Page();
Expand Down
4 changes: 2 additions & 2 deletions hosts/AspNetIdentity/Pages/Consent/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task<IActionResult> OnGet(string returnUrl)
View = await BuildViewModelAsync(returnUrl);
if (View == null)
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

Input = new InputModel
Expand All @@ -58,7 +58,7 @@ public async Task<IActionResult> OnPost()
{
// validate return url is still valid
var request = await _interaction.GetAuthorizationContextAsync(Input.ReturnUrl);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/AspNetIdentity/Pages/Device/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task<IActionResult> OnGet(string userCode)
public async Task<IActionResult> OnPost()
{
var request = await _interaction.GetAuthorizationContextAsync(Input.UserCode);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/AspNetIdentity/Pages/Redirect/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IActionResult OnGet(string redirectUri)
{
if (!Url.IsLocalUrl(redirectUri))
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

RedirectUri = redirectUri;
Expand Down
2 changes: 1 addition & 1 deletion hosts/EntityFramework/Pages/Ciba/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task<IActionResult> OnGet(string id)
if (LoginRequest == null)
{
_logger.LogWarning("Invalid backchannel login id {id}", id);
return RedirectToPage("/home/error/index");
return RedirectToPage("/Home/Error/Index");
}

return Page();
Expand Down
4 changes: 2 additions & 2 deletions hosts/EntityFramework/Pages/Consent/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task<IActionResult> OnGet(string returnUrl)
View = await BuildViewModelAsync(returnUrl);
if (View == null)
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

Input = new InputModel
Expand All @@ -58,7 +58,7 @@ public async Task<IActionResult> OnPost()
{
// validate return url is still valid
var request = await _interaction.GetAuthorizationContextAsync(Input.ReturnUrl);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/EntityFramework/Pages/Device/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task<IActionResult> OnGet(string userCode)
public async Task<IActionResult> OnPost()
{
var request = await _interaction.GetAuthorizationContextAsync(Input.UserCode);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/EntityFramework/Pages/Redirect/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IActionResult OnGet(string redirectUri)
{
if (!Url.IsLocalUrl(redirectUri))
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

RedirectUri = redirectUri;
Expand Down
2 changes: 1 addition & 1 deletion hosts/main/Pages/Ciba/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task<IActionResult> OnGet(string id)
if (LoginRequest == null)
{
_logger.LogWarning("Invalid backchannel login id {id}", id);
return RedirectToPage("/home/error/index");
return RedirectToPage("/Home/Error/Index");
}

return Page();
Expand Down
4 changes: 2 additions & 2 deletions hosts/main/Pages/Consent/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task<IActionResult> OnGet(string returnUrl)
View = await BuildViewModelAsync(returnUrl);
if (View == null)
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

Input = new InputModel
Expand All @@ -58,7 +58,7 @@ public async Task<IActionResult> OnPost()
{
// validate return url is still valid
var request = await _interaction.GetAuthorizationContextAsync(Input.ReturnUrl);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/main/Pages/Device/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task<IActionResult> OnGet(string userCode)
public async Task<IActionResult> OnPost()
{
var request = await _interaction.GetAuthorizationContextAsync(Input.UserCode);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/main/Pages/Redirect/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IActionResult OnGet(string redirectUri)
{
if (!Url.IsLocalUrl(redirectUri))
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

RedirectUri = redirectUri;
Expand Down