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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sinasalek’s picture

Category: Feature request » Bug report
Status: Active » Needs review
FileSize
885 bytes

Here is the patch for fixing the problem

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

Excellent 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.

mcartmel’s picture

Hi, any chance this could be made to work in conjunction with the 2245213 preserving query string patch?

Robin Monks’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

This 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!).