Support external URLs with duplicate query parameters

Created on 22 May 2023, almost 2 years ago
Updated 17 April 2024, about 1 year ago

Problem/Motivation

Drupal doesn't handle external URLs that have repeated key/value pairs in the query. This is causing real-world problems for a client integrating with a system called Daxko that seems to use such URLs.

As far as I can tell there's no RFC that dictates that format of parameters within a query string, so it seems to me the safe thing to do would be to preserve external URL query strings in their entirety. That said I noticed in a related (but separate I think) issue, πŸ› Query string duplications Fixed , that there are tests being written to verify the current behavior, so I'm wondering if I'm missing something!

Steps to reproduce

$ drush ev "print \Drupal\Core\Url::fromUri('https://example.com/?a=1&a=2')->toString() . PHP_EOL"
https://example.com/?a=2

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 3 minutes ago

Created by

πŸ‡¬πŸ‡§United Kingdom AndyF

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.

Production build 0.71.5 2024