|
@@ -160,6 +160,11 @@ namespace fisp
|
|
|
.Replace("href=\"flyinsono.ico", $"href=\"{staticRoot}flyinsono.ico")
|
|
|
.Replace("window.STATIC_ROOT = './';", $"window.STATIC_ROOT = '{staticRoot}';");
|
|
|
|
|
|
+ if (!IsEmbedded)
|
|
|
+ {
|
|
|
+ content = content.Replace("base href=\"/\"", $"base href=\"{staticRoot}\"");
|
|
|
+ }
|
|
|
+
|
|
|
File.Delete(filePath);
|
|
|
|
|
|
using (var fs = new FileStream(filePath, FileMode.CreateNew, FileAccess.Write, FileShare.None))
|