Fix base href replacement in StaticFilesMiddleware
This commit is contained in:
@@ -59,7 +59,7 @@ public static class StaticFilesExtensions
|
||||
if (!prefix.EndsWith("/"))
|
||||
prefix += "/";
|
||||
|
||||
return fileContent.Replace("<base href=\"/\" \/>", $"<base href=\"{prefix}\" \/>");
|
||||
return fileContent.Replace("<base href=\"/\" />", $"<base href=\"{prefix}\" />");
|
||||
}
|
||||
|
||||
public static IApplicationBuilder UseDefaultStaticFiles(this WebApplication app, string webroot, IEnumerable<string> spaPaths)
|
||||
|
||||
Reference in New Issue
Block a user