Problems when you define a site_url that is different from the home_url #54454
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
Needs Testing
Needs further testing to be confirmed.
[Status] Stale
Gives the original author opportunity to update before closing. Can be reopened as needed.
[Type] Bug
An existing feature does not function as intended
Description
I use WordPress in a headless mode and therefore I define a site_url that is different from the home_url in Settings->General.
home_url: backend.domainA.com
site_url: domainB.com
If have seen #1761 and implemented the mentioned workaround
With this filter I can use Gutenberg again (add / edit posts). But when I use a block theme, I see the following call to the site_url, which obviously cannot work:
site_url/?p=10&_wp-find-template=true&_locale=user
Step-by-step reproduction instructions
Disclaimer: I want to use a block theme in the backend because of the functionality it provides in wp-admin, even when I am using WordPress in Headless mode with a custom frontend.
Screenshots, screen recording, code snippet
No response
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: