Skip to content

Commit

Permalink
Merge pull request #873 from unoplatform/dev/eb/manifest
Browse files Browse the repository at this point in the history
fix: Ensure PWA manifest path is not rewritten
  • Loading branch information
ebariche authored Jul 12, 2024
2 parents 9b359bd + 7342623 commit 6ee09b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Uno.Wasm.Bootstrap/ShellTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2218,6 +2218,8 @@ private void GenerateIndexHtml()
}
html = html.Replace($"\"./", $"\"{WebAppBasePath}{_remoteBasePackagePath}/");

html = html.Replace("$(WEB_MANIFEST)", $"{WebAppBasePath}{Path.GetFileName(PWAManifestFile)}");

w.Write(html);

Log.LogMessage($"HTML {htmlPath}");
Expand Down Expand Up @@ -2351,7 +2353,7 @@ private void GeneratePWAContent(StringBuilder extraBuilder)
{
var manifestDocument = JObject.Parse(File.ReadAllText(PWAManifestFile));

extraBuilder.AppendLine($"<link rel=\"manifest\" href=\"{WebAppBasePath}{Path.GetFileName(PWAManifestFile)}\" />");
extraBuilder.AppendLine($"<link rel=\"manifest\" href=\"$(WEB_MANIFEST)\" />");

// See https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html
extraBuilder.AppendLine($"<meta name=\"apple-mobile-web-app-capable\" content=\"yes\">");
Expand Down

0 comments on commit 6ee09b0

Please sign in to comment.