Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297589

Rendered links ignore query array keys

$
0
0

Problem

When attempting to use a link with array parameters that have an integer key, the link processed will be incorrect.

Steps to reproduce
In a fresh installation, add link field to article content type.
Add new article and fill the link field with this example "/exampleview?param[89]=89". Save and view the node.
You will see this link "http://domain/exampleview?param%5B0%5D=89&param%5B1%5D=89".

I'm expecting this link "http://domain/exampleview?param%5B89%5D=89".

Why am I trying to use this link?
It is a link to a view to pre-select a multiple filter (checkboxes).

Proposed resolution

Use mergeDeepArray with preserve_integer_keys to TRUE instead of mergeDeep.


Viewing all articles
Browse latest Browse all 297589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>