Problem/Motivation

The redirect injected as parameter in destination queryParam is wrong in the admin content page if ajax is enabled in the view and the site is in a subfolder.

Steps to reproduce

I have a site installed under a subfolder, let's say https://mysite.com/test

  • Enable ajax in the admin content page view (/admin/structure/views/view/content/edit/page_1)
  • Expose the content type as an exposed filter and check Remember the last selection
  • Visit the admin content page and filter for some content type, then press filter.
  • What I expect is to have in the edit operations link a queryParam "destination" with /test correctly appended at the beginning
  • What I find instead is a queryParam similar to this: /admin/content%3Ftitle%3D%26type%3Dfaq%26status%3DAll without the proper subfolder, then wrong.
  • If I disable ajax or simply reload the page, the destination parameter is set correctly with /test at the beginning

Proposed resolution

Check eventually for original basepath on ajax implementation of the views.

Comments

sanci created an issue. See original summary.

cilefen’s picture

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.