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

  1. Set up at least two sites, one of which is the default.
  2. Log in and stay on the default site.
  3. 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

Command icon 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

gashunk created an issue. See original summary.

gashunk’s picture

Status: Active » Needs review

hydra made their first commit to this issue’s fork.

  • hydra committed 8d62dfb2 on 1.x authored by gashunk
    feat: #3601297 Add frontpage preview route for non-default sites
    
    By:...
hydra’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.