I have a link to a create node form from a particular page. After the user creates the node and saves, I want to redirect the user back to that page (and not to the new node URL).

What is the best way to do that?


I figured it out. Just add the '?destination=the/url/you/want/to/redirect/to' to the /node/add/your-content-type' link.

  • i think in most cases users want a dynamic link which actually includes the original page, instead of having to hardcode the original url in the link. – Yuri Mar 23 '19 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.