Ampersands are being encoded as HTML instead of being URL friendly

Created on 5 September 2023, over 1 year ago

Problem/Motivation

When using a URI token that contains a query string as a linked field the ampersands (&) in the query string are being encoded as & which is not something a URL can handle. It breaks the query string.

Steps to reproduce

- Use a URLs URI token as a linked field value.
- Ensure the URL has a query string containing an &.
- View the rendered linked field.
- See that & are encoded as &.

Proposed resolution

When constructing the destination URL use htmlspecialchars_decode.
This should be pretty harmless since we are assuming it is just the URL,

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇨🇦Canada sstapleton

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

Comments & Activities

Production build 0.71.5 2024