-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font Manager uses incorrect URLs on multisite #59352
Comments
I was also able to reproduce this problem. A DOM exception error is occurring here, so there might be some problem with the |
Thanks for the pointer @t-hamano, I worked backwards to find the source It appears there are assumptions about the theme URL being made in this code that are incorrect gutenberg/packages/edit-site/src/components/global-styles/font-library-modal/context.js Lines 172 to 173 in 4d5fd5a
The The JavaScript equivalents of |
Hardcoding URLs like that is definitely incorrect and needs to be addressed |
Here's a potential fix for this issue: #59421 |
Description
The font library manager attempts to load fonts using incorrect URLs in the font-manager when using Multisite in sub-directory mode.
In the console when I open the font manager model the Caro and Inter fonts attempt to load from the following URLs which throw 404 errors:
Elsewhere in the site editor they appear to load from the correct URLs
WordPress installed in a sub-directory will also need to be tested.
Step-by-step reproduction instructions
Edit: Creating a sub-site in not necessary, the issue occurs on the main site too.
/two/
host/two/wp-admin/site-editor.php?canvas=edit
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: