Generate a proper GET query

Created on 31 March 2021, over 3 years ago
Updated 25 July 2023, over 1 year ago

Problem/Motivation

The URLs for like/dislike generated by the LikeDislikeFormatter append a ?like-dislike-redirect= parameter without considering whether the generated URL already contains ?parameters=.

Proposed resolution

Use the $options['query'] array of query parameters and let Drupal's internal URL generation logic take care of adding this parameter.

Remaining tasks

Prepare a patch

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇭Switzerland stefanos.petrakis@gmail.com Biel, Switzerland

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