JSON object set as value in get parameter
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3587546. --> Reported by: [fjgarlin](https://www.drupal.org/user/2495842) Related to !209 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When using tagify to render a view exposed filter, the whole json object gets stored in the GET parameter, like this:<br> <code>loc_served=[{"value":"27147","entity_id":27147,"parent_name":"","info_label":null,"label":"Spain","editable":false,"input":"spa"}]</code> (it looks even worse as the URL is encoded... this is the decoded version).</p> <p>If multiple items are selected things get worse...</p> <pre>https://drupalorg.ddev.site/node/10006520?loc_served=%5B%7B%22value%22%3A%2227147%22%2C%22entity_id%22%3A27147%2C%22parent_name%22%3A%22%22%2C%22info_label%22%3Anull%2C%22label%22%3A%22Spain%22%2C%22editable%22%3Afalse%2C%22input%22%3A%22spa%22%7D%2C%7B%22value%22%3A%2226962%22%2C%22entity_id%22%3A26962%2C%22parent_name%22%3A%22%22%2C%22info_label%22%3Anull%2C%22label%22%3A%22Albania%22%2C%22editable%22%3Afalse%2C%22input%22%3A%22a%22%7D%5D</pre><h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>- Install better exposed filters.<br> - Create a vocabulary with terms and add a reference field to this vocabulary on a content type.<br> - Create a view for that content type, and add a filter to the vocabulary. Expose it and use better exposed filters to select "tagify" as widget.<br> - The view works, the filter works, BUT the URL will look like the above.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Make the parameter be the value of the input only, like any other select field.</p>
issue