Fix #2336 - error.png path incorrect

This commit is contained in:
Shaun Walker
2022-08-06 16:27:24 -04:00
parent d8b4267668
commit 99be638525

View File

@ -503,7 +503,7 @@ namespace Oqtane.Controllers
HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden;
}
string errorPath = Path.Combine(GetFolderPath("images"), "error.png");
string errorPath = Path.Combine(GetFolderPath("wwwroot\\images"), "error.png");
return System.IO.File.Exists(errorPath) ? PhysicalFile(errorPath, MimeUtilities.GetMimeType(errorPath)) : null;
}
@ -568,7 +568,7 @@ namespace Oqtane.Controllers
HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden;
}
string errorPath = Path.Combine(GetFolderPath("images"), "error.png");
string errorPath = Path.Combine(GetFolderPath("wwwroot\\images"), "error.png");
return System.IO.File.Exists(errorPath) ? PhysicalFile(errorPath, MimeUtilities.GetMimeType(errorPath)) : null;
}