0

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?

1 Answer 1

3

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

1
  • 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, 2019 at 17:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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