-
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
Fix the site editor home page loading when installed in a subdirectory #48363
Conversation
Size Change: +12 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in 875082a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4253134828
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Work for me
I just cherry-picked this PR to the wp/6.2 branch to get it included in the next release: f83d85c |
closes #48292
What?
When WP is installed in a subdirectory, the site editor would show a loader indefinitely. This PR fixes that.
How?
The URL of the home page is not always
/
. This PR uses thegetSite
selector to grab the url of the frontend and retrieve the template based on that URL.Testing Instructions
1- Have a WP install in a subdirectory
2- Load the site editor
3- The front page should load properly.