Opened 2 months ago
Last modified 2 months ago
#59438 new defect (bug)
Posts Page Redirects to Home Page
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.3.1 |
Component: | General | Keywords: | |
Focuses: | ui, administration | Cc: |
Description
When using Settings > Reading > A Static Page configured as: Homepage (Home) and Posts page: (Blog), when you click the Preview button in the Blog page Editor, the Preview redirects to the Homepage and the preview shown is the homepage content and not the Blog page content.
If the Settings is changed to "Your latest posts", the Blog page content will display.
This happens with any page assigned to Homepage. The Blog page will be redirected to whatever content is on the Homepage.
I've downgraded as far back as WordPress 6.0 running PHP 7.4, switched themes, deactivated plugins and tried this same scenario on two different hosting platforms with the same results.
I found an old bug report from 16 years ago that seems very similar to this - https://core.trac.wordpress.org/ticket/4773.
Would like to know if this is indeed a bug.
I can replicate this. While editing the Blog page, and selecting "Preview in new tab", the link URL points to
https://{my domain}/blog/?preview_id=110&preview_nonce=...&preview=true
- note the presence of/blog/
in there.The tab that opens though ends up as
https://{my domain}/?preview_id=110&preview_nonce=...
- a visible redirect has happened and the/blog/
is gone from the URL.If I manually add the
/blog/
part back, then I do get the contents of the blog page, albeit with no amendments from the editing since the Blog page is handled via the "Blog Home" Template on the Twenty Twenty-Three theme.Even if it may not make sense to preview a static blog page which is being handled by a block theme template, the UI is a little confusing to new (and experienced) users.