Skip to content

Commit

Permalink
[DI-1374] - Fixes redirect when ods api connection is not valid (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJGapCR authored Jun 4, 2024
1 parent f464df0 commit d368ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataImport.Web/Infrastructure/MvcTransactionFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static void AjaxRedirect(ActionExecutedContext filterContext, RedirectTo
result.RouteValues.Remove("controller");

var redirectUrl = generator.GetUriByAction(action, controller, result.RouteValues,
filterContext.HttpContext.Request.Scheme, filterContext.HttpContext.Request.Host);
filterContext.HttpContext.Request.Scheme, filterContext.HttpContext.Request.Host, filterContext.HttpContext.Request.PathBase);

// JSON response is not allowed in GET requests by default in ASP.NET MVC due to security concerns
if (filterContext.HttpContext.Request.Method == "GET")
Expand Down

0 comments on commit d368ff8

Please sign in to comment.