]> cat aescling's git repositories - mastodon.git/commitdiff
use relative path for `scope` (#16714)
authorHolger <holgerhuo@outlook.com>
Wed, 8 Sep 2021 21:33:36 +0000 (05:33 +0800)
committerGitHub <noreply@github.com>
Wed, 8 Sep 2021 21:33:36 +0000 (23:33 +0200)
Use relative path for `scope` in web manifest to allow users use PWA correctly via alternate domains.

app/serializers/manifest_serializer.rb

index dafe8f55b9e8e42f32e07bc92f421f44370832f6..4786aa760af92aa4b0e1f5e04ccf8cb82695d35b 100644 (file)
@@ -48,7 +48,7 @@ class ManifestSerializer < ActiveModel::Serializer
   end
 
   def scope
-    root_url
+    '/'
   end
 
   def share_target