URL conditions mean previews do not match final page

Created on 3 January 2025, 4 months ago

Problem/Motivation

In asset injection using a restriction by page URL is not applied to a page preview.

Steps to reproduce

Create a page
Create an asset injection restricted to that page's URL
Edit the page and click on 'Preview'
Notice that the styles or js in the asset injection are not applied.

Proposed resolution

Add code to recognise that the URL for the preview is the same node as the URL restriction.

Remaining tasks

Fix

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Active

Version

2.21

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom Rory Downes

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

Comments & Activities

Production build 0.71.5 2024