Problem/Motivation

When I enable ajax on sorter of one views, if I sorter the content on view and after to edit the content and save, I'm redirect for the page not found

Steps:

  1. Create a View;
  2. Use Ajax on Sorter;
  3. To go the View creted;
  4. Click on title table for reorder;
  5. Click on edit;
  6. Click save.


PS:

  • The steps works for native views of Drupal.
  • @see the path destination

Comments

thalles created an issue. See original summary.

thalles’s picture

Category: Support request » Bug report
thalles’s picture

Issue summary: View changes
KittenDestroyer’s picture

Indeed the issue is present in native views.
I will write more precise instruction to reproduce:

  1. Create a view with content and displayed as a table
  2. Add sorting by Title field with Ajax enabled for a view
  3. Add Operations field to a view
  4. Add some content (obviously)
  5. Go to created view and sort by title more than 1 time
  6. Edit link will then appear like this /node/1/edit?destination=/views/ajax%3Forder%3Dtitle%26sort%3Ddesc

As you can see destination is corrupted.
I will try to make a patch to fix it.

KittenDestroyer’s picture

Status: Needs work » Needs review
Parent issue: » #2866386: Assert the view path is set correctly after second ajax request

Can confirm that it is related to:
https://www.drupal.org/project/drupal/issues/2866386#comment-13158418

Patch from the comment fixes the issue.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.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.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.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.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.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 » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now 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.

smustgrave’s picture

Status: Needs review » Closed (duplicate)
Issue tags: +Needs Review Queue Initiative

Closing as a duplicate of #2866386: Assert the view path is set correctly after second ajax request.

Tried replicating on D10 and was not able to following the steps from the IS and #4