diff --git a/Oqtane.Server/Pages/Files.cshtml.cs b/Oqtane.Server/Pages/Files.cshtml.cs index f01cd0b7..2c7d5ee6 100644 --- a/Oqtane.Server/Pages/Files.cshtml.cs +++ b/Oqtane.Server/Pages/Files.cshtml.cs @@ -48,7 +48,7 @@ namespace Oqtane.Pages public IActionResult OnGet(string path) { - if (string.IsNullOrWhiteSpace(path)) + if (string.IsNullOrWhiteSpace(path) || _alias == null) { HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden; return BrokenFile();