You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting various JS errors from the WP Admin service worker because my website uses a wp-content directory which is separate from the WordPress core directory (which also means home_url() is different from site_url().
A potential solution would be to call admin_url() and includes_url(), taking the paths from there.
I'm also thinking due to the nature of the bug that it could be happening in multisites using subdirectories too (although that's just an assumption, I haven't confirmed).
@westonruter Ah makes sense, thanks. Is this planned for 0.7? And just to clarify, deprecation or removal? Would they be unhooked from the filter but remain in place initially?
I'm getting various JS errors from the WP Admin service worker because my website uses a
wp-content
directory which is separate from the WordPress core directory (which also meanshome_url()
is different fromsite_url()
.The PWA plugin assumes certain directory structures in https://github.com/GoogleChromeLabs/pwa-wp/blob/develop/integrations/class-wp-service-worker-admin-assets-integration.php#L22, which are not a given; for example, my WP Admin is not at
wp-admin
but atwp/wp-admin
, and similarly mywp-includes
is atwp/wp-includes
.Example error:
(the URL should be
https://mysite.com/wp/wp-admin/images/privacy.png
Since WordPress allows setting these URLs differently, I think that needs to be accounted for here too.
The text was updated successfully, but these errors were encountered: