Problem/Motivation
When on the default site it is not possible to preview the frontpage of other configured sites. The existing preview functionality only covers specific entities (e.g. /node/{node}/site/{site}), not the site's entry point.
Steps to reproduce
- Set up at least two sites, one of which is the default.
- Log in and stay on the default site.
- Try to preview the frontpage of another site — there is no route or UI link to do so.
Proposed resolution
Add a new route /site/{site}/preview/frontpage that switches the site context to the given site and renders its configured frontpage. The existing SiteSwitcherInterface and SitesPreviewPageVariantSubscriber infrastructure can be reused. A link to this route should be exposed in the site administration overview.
Issue fork sites-3601297
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
gashunk commentedComment #6
hydra commented