Skip to content

Commit

Permalink
Revert "add trailing slash to app manifest start url"
Browse files Browse the repository at this point in the history
This reverts commit 84c8396.
  • Loading branch information
maxence-charriere committed Aug 22, 2024
1 parent 84c8396 commit 427b7b2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/app/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,6 @@ func (h *Handler) makeManifestJSON() []byte {
scope += "/"
}

startURL := h.Resources.Resolve("/")
if !strings.HasSuffix(startURL, "/") {
startURL += "/"
}

var b bytes.Buffer
if err := template.
Must(template.New("manifest.webmanifest").Parse(manifestJSON)).
Expand All @@ -416,7 +411,7 @@ func (h *Handler) makeManifestJSON() []byte {
BackgroundColor: h.BackgroundColor,
ThemeColor: h.ThemeColor,
Scope: scope,
StartURL: startURL,
StartURL: h.Resources.Resolve("/"),
}); err != nil {
panic(errors.New("initializing manifest.webmanifest failed").Wrap(err))
}
Expand Down

0 comments on commit 427b7b2

Please sign in to comment.