Attach query string not pass to $redirectUrl

Created on 24 January 2024, 10 months ago
Updated 13 September 2024, 2 months ago

Drupal:10.2.2 PHP:8.2
\context_redirect\src\Plugin\ContextReaction\Redirect.php public function execute() {

        $options = [];
        // Preserve the current query parameters if required.
        if ($config['qsa']) {
/*WT-patch: Attach query string*/
          $options['query'] = $query->all(); //$options['query'] = $query;
/*<<<*/
        }
        if ($config['redirect_destination'] == 1) {
          // Add the current destination or the current path as the destination.
          $options['query']['destination'] = $this->redirectDestination->get();
        }
        $redirectUrl = Url::fromUri($uri, $options)->toString();
        $http_response_code = $config['redirect_type'] ?? 302;
๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024