Global: Unfiltered text replacement tokens from the first row adds extra spaces around {{ nid }}

Created on 27 November 2024, 4 months ago

Problem/Motivation

If you use {{ nid }} or {{ uid }} in Global: Unfiltered text in the header and select use replacement tokens from the first row, extra spaces are added around {{ nid }} and {{ uid }}

Steps to reproduce

Create a view of any content type
Add field Content ID {{ nid }}
Add a Global: Unfiltered text area
Select: use replacement tokens from the first row
Add the following content in the text area:

--{{ nid }}--
<a href="/node/{{ nid }}">node</a>

The result will display as follow
-- 2 -- instead of --2--

and the link /node/2 is broken and cant be formatted as a link

The link looks like this
2 ">node

πŸ› Bug report
Status

Active

Version

10.3 ✨

Component

views.module

Created by

πŸ‡ΏπŸ‡¦South Africa vlooi vlerke

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

Comments & Activities

Production build 0.71.5 2024