This is a follow-up to the issue URL query parameters when using "Save and Add another" button.
Some modules like Entity Reference Prepopulate require the user to pass query parameters in order to access certain node forms. These are removed when using add another.
I can't figure any reason why only destination should be passed when adding another item, but I haven't done very much research. Maybe there is a very good reason to only pass the destination parameter.
If not, using drupal_get_query_parameters() still solves the case with the destination-parameter, and also solves the use case described in this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | addanother-query_params-2850821-1.patch | 864 bytes | kevineinarsson |
Comments
Comment #2
kevineinarsson commentedComment #3
kevineinarsson commentedComment #4
david.qdoscc commentedThanks. #2 works for me
Comment #5
David Hernández commentedThe patch seems to be working correctly. Marking this as RTBC.
Comment #6
amir simantov commented#2 works well also for me.
Comment #8
neslee canil pintoComment #10
kristofferwiklund commentedA follow up issue here.
https://www.drupal.org/project/addanother/issues/3169088