Opened 2 years ago
Closed 2 years ago
#57100 closed defect (bug) (reported-upstream)
"View Site" link in Editor leads to 404 page if home url is not same as site url
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 6.1 |
Component: | Themes | Keywords: | |
Focuses: | administration | Cc: |
Description
I'm using [Bedrock](https://roots.io/bedrock/) structure for site project so return value of home_url() === 'domain.com'
is not same as site_url() === 'domain.com/wp'
So if you go to Appearance -> Editor -> Site and click View -> View Site (top right corner) it will leads to domain.com/wp
instead of domain.com
and will be resolved in 404 response preview page
My proposition is to change site url into home url [here](https://github.com/WordPress/WordPress/blob/master/wp-admin/site-editor.php#L72)
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi @aliakseyenkaihar and thank you for the report.
This issue has been reported and fixed in a ticket on Gutenberg issue tracker. The fix will be included in WordPress 6.1.1 which is due to be released later this week. You can test the fix in the WordPress 6.1.1 release candidate.
I'm going to close this ticket as reported upstream. This means your ticket was valid but has been fixed in another issue tracker.
Thanks again for taking the time to log an issue.