Subtheming Rivet causes WSOD on 404 pages

Created on 28 November 2023, 7 months ago

Problem/Motivation

Visit any non-existing route in a sub-theme of the Rivet theme and you see a broken page.

Proposed resolution

The problem is a core bug with how the directory variable can be used in Twig.

See πŸ› {{ directory }} in Twig template resolves the directory of the child theme rather than that of the parent theme Active .

The workaround is to replace:

{{ source(directory ~ '/images/path/to/filename.svg') }}

with:

{% include('@rivet/../images/path/to/filename.svg') %}

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ͺπŸ‡¨Ecuador jwilson3

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

Comments & Activities

Production build 0.69.0 2024