Token displays when value is empty

Created on 20 October 2022, over 2 years ago
Updated 14 February 2025, 2 months ago

Problem/Motivation

If I make the default value for a text component be [current-page:query:test] and the URL ends with ?test=foo, then the component will have foo as its default. If the query is ?test=, the default will be empty. But if the test parameter is not there at all, the token will literally appear as the default. Instead it should be empty.

🐛 Bug report
Status

Closed: works as designed

Version

6.1

Component

Code

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

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.

  • 🇨🇦Canada joelpittet Vancouver

    Thanks for having this discussion in public! 😃 I either didn’t remember that :clear was a thing or just learned it here! 😆

Production build 0.71.5 2024