Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Steps to reproduce:
- Enable ajax on the /admin/content view
- Create at least a article and page node
- Filter by article
- Edit the one article
- Hit save
- Expected: you are back to /admin/content
- Actual result: you get the json result
Proposed resolution
Exclude some magic properties from the destination query.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#6 | 2637720-6.patch | 2.75 KB | dawehner |
#5 | interdiff.txt | 1.49 KB | dawehner |
#5 | 2637720-5.patch | 2.75 KB | dawehner |
#2 | 2637720-2.patch | 2.12 KB | dawehner |
Comments
Comment #2
dawehnerHere is a fix. Another issue which could profit quite a lot from javascript testing.
Comment #3
damiankloip CreditAttribution: damiankloip commentedThis fix seems OK to me. We don;t have another way of excluding these query params. Yet..
Comment #4
tim.plunkettThis could have an @todo pointing to #2504709: Prevent _wrapper_format and ajax_form parameters from bleeding through to generated URLs
Also should use the constant \Drupal\Core\EventSubscriber\MainContentViewSubscriber::WRAPPER_FORMAT.
Comment #5
dawehnerThere we go.
Thank you for the feedback!
Comment #6
dawehnerJust a ordinary rebase.
Comment #7
jibranLet's be bold here.
Comment #8
alexpottCommitted 3049685 and pushed to 8.0.x and 8.1.x. Thanks!
@jibran that rtbc comment does not exactly explain how you've reviewed the code and passes the core gates.
Minor comment fix on commit.