Make WordPress Core

#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: aliakseyenkaihar's profile aliakseyenkaihar Owned by:
Milestone: Priority: normal
Severity: minor Version: 6.1
Component: Themes Keywords:
Focuses: administration Cc:


I'm using [Bedrock]( structure for site project so return value of home_url() === '' is not same as site_url() === ''

So if you go to Appearance -> Editor -> Site and click View -> View Site (top right corner) it will leads to instead of and will be resolved in 404 response preview page

My proposition is to change site url into home url [here](

Change History (1)

#1 @peterwilsoncc
19 months ago

  • Component changed from Editor to Themes
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.