Redirect destinations are not added to asset list

Created on 28 June 2022, about 2 years ago
Updated 27 January 2023, over 1 year ago

Problem/Motivation

A page featuring a redirect is added, however the page it forwards to is not added.

Tome supports it, however Preview Site is currently filtering all HTML files in \Drupal\preview_site\Plugin\PreviewSite\Generate\TomeGenerator::generateBuildForPath, specifically lines featuring:

// We don't want to crawl the site for other content, we only want to
// get CSS, Javascript, images

Steps to reproduce

  1. Create two nodes, with custom paths.
  2. Create a redirect via Redirect.module, source is one node, target is the other.
  3. Build a preview site referencing the source node

Result:

Source node is built.
Target node is not built.
When navigating to the source node, it redirects to the path of the missing node.

Proposed resolution

Allow html files to be added if they are the destination of a redirect.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia dpi Perth, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024