I set a ?destintation=home (for example) on my link. I did see the problem https://www.drupal.org/node/1833508.
Here's my link as a reference.
a href="http://localhost/pftst/node/add/give?destination=home" rel="nofollow" class=
"addnewcontentbutton">ADD</a>
When I don't include the destination all works fine with 'add another'. When I include the destination and click 'save and add another' I'm brought back to the home page. What I hoped would happen is the destination would be set aside and as long as you 'add another' it keeps letting you add another. Once you click 'save' THEN the destination is acted upon.
I made this a feature request but if it should be a bug let me know and I can change.
thank you.
Comments
Comment #1
sinasalek commentedHere is the patch for fixing the problem
Comment #2
Anonymous (not verified) commentedExcellent job sinasalek. Works like a charm. I have some special rules in place to limit how many nodes may be created for a content type and as expected your changes had no impact.
Tried other ways to break it but I see no problems.
Comment #3
mcartmel commentedHi, any chance this could be made to work in conjunction with the 2245213 preserving query string patch?
Comment #4
robin monks commentedThis work will be completed over at #1833508: URL query parameters when using "Save and Add another" button, which will be committed soon (thanks for the patience!).