aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-23 20:09:54 +0100
committerGitHub <noreply@github.com>2020-12-23 19:09:54 +0000
commitcd5278a44c45ad4f763b7142674c956576561d43 (patch)
tree66e62f583b58c03862f8cd5bd7d37668c69e12ca /templates
parente0c753e770a64cda5e3900aa1da3d7e1f3263c9a (diff)
downloadgitea-cd5278a44c45ad4f763b7142674c956576561d43.tar.gz
gitea-cd5278a44c45ad4f763b7142674c956576561d43.zip
Fix manifest encoding (#14114)
The previous URL encoding would encode spaces to '+' for the app name which is incorrect. Use base64 encoding instead which does not have such issues.
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index c47fd08c17..32660df6bb 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{{if .Title}}{{.Title | RenderEmojiPlain}} - {{end}} {{if .Repository.Name}}{{.Repository.Name}} - {{end}}{{AppName}} </title>
- <link rel="manifest" href="{{.ManifestData}}"/>
+ <link rel="manifest" href="data:{{.ManifestData}}"/>
<meta name="theme-color" content="{{ThemeColorMetaTag}}">
<meta name="default-theme" content="{{DefaultTheme}}" />
<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}{{MetaAuthor}}{{end}}" />