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
The query destination key is wrong mapped, causing not redirecting to the previous form.
URL: http://example.com/admin/config/search/xmlsitemap/entities/settings
Form: XmlSitemapEntitiesSettingsForm
Link Url created before patch: /admin/config/search/xmlsitemap/settings/node/article?query%5Bdestination%5D=/admin/config/search/xmlsitemap/entities/settings
Link Url created after patch: /admin/config/search/xmlsitemap/settings/node/article?destination=/admin/config/search/xmlsitemap/entities/settings
Proposed resolution
Code fix
Remaining tasks
- Review/commit patch
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#3 | After_patch.png | 99.82 KB | Aanal.addweb |
#3 | Before_patch.png | 88.28 KB | Aanal.addweb |
#2 | xmlsitemap-xmlsitemapentitiessettingsform-destination-query-2931593-2.patch | 680 bytes | GeduR |
Comments
Comment #2
GeduR CreditAttribution: GeduR at Metadrop commentedPlease review!
Comment #3
Aanal.addweb CreditAttribution: Aanal.addweb at AddWeb Solution Pvt. Ltd. commented@GeduR, Thanks for providing the patch, It works as expected & As per the given requirement. I Checked it using simplytest.me & attached the results for the same.
Comment #4
tunicSimple patch, received feedback is good, moving to RTBC.
Comment #5
pifagorthe patch did not pass automatic tests because we need fix tests for dev version module
Comment #6
pifagorComment #7
pifagorComment #9
pifagor