Skip to content

Edit page link in the admin bar and homepage template. #66109

@unprintedch

Description

@unprintedch

Description

There is a mislieading link to edit the front page from the admin bar.
If you have a page with some content and a template for frontpage setup in the theme editor.
See more ine the step by step

Step-by-step reproduction instructions

Create a blank playground

Set the sample page to home page via settings > reading
It displays the content of the sample page on the home page.

Create a front-page template in the theme editor.
It displays the content of the front-page template on the home page.

This is understandable, but confusing. one page, two content...

Now if you are on the frontend of your site, click on "edit page" you are sent to edit the page with the sample page content.
And if you hit edit site you go to actual front page template.

Same if you edit the page navigating PAGE > sample page you fine yourself with the sample page content
But if you navigate through APPEARANCE > EDITOR > PAGE > sample page you have the front page content.

It is uncomfortable. We have a single source of truth problem.

Screenshots, screen recording, code snippet

No response

Environment info

It is a basic playground

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions