Problem with subdomain
-
Great plugin, but there is a url problem with my mobile subdomain.
Desktop site is mydomain.com, PWA not installed
Mobile site is m.mydomain.com. PWA installedThe problem is that the PWA on the mobile site points to mydomain.com
For instance in webmaster tools, the manifest points to start url mydomain.com instead m.mydomain.com, making that the service worker will not load.
In console, this gives:
The script resource is behind a redirect, which is disallowed.
?wp_service_worker=1:4 Uncaught DOMException: Failed to execute ‘importScripts’ on ‘WorkerGlobalScope’: The script at ‘https://www.mydomain.com/wp-content/plugins/progressive-wp/assets/workbox-v3.4.1/workbox-sw.js’ failed to load.
at https://m.mydomain.com/?wp_service_worker=1:4:1
at https://m.mydomain.com/?wp_service_worker=1:6:4The mobile app itself loads fine, just without service worker.
Any ideas how to fix?
- The topic ‘Problem with subdomain’ is closed to new replies.