If the rendered link leads to a form, such as the 'node/add/foo' page, then it would be nice to be able to redirect users to the view after they have added a node.
This can be done by adding a 'destination' to the link URL.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | views_linkarea.zip | 9.89 KB | off |
| #4 | 1722258-4.views_linkarea.return-to-view.patch | 1.69 KB | tedbow |
| #1 | 1722258.views_linkarea.return-to-view.patch | 1.6 KB | joachim |
Comments
Comment #1
joachim commentedHere's a patch for that which adds an extra option to the handler.
Comment #2
anybodyPlease review this patch to get it into the next dev release.
I will have a look myself too.
Comment #3
tedbowWhat about just let the links use global tokens? Then you could do this via adding the current page path in query string section which also exists. Then it would also give you access to other tokens like the current user's UID
Comment #4
tedbowThe patch no longer applied so I rerolled it. I didn't change any of the code.
It works fine for me. I guess some needs to review this 1 now.
Comment #5
michael_cristal commentedcomment removed
Comment #6
filsterjisah commentedpatch #4 works
Comment #7
denes.szabo commentedPatch #4 seems fine. Thx!
Comment #8
mr.york commentedPatch #4 works for me.
Comment #9
nagy.balint commentedSame here, patch #4 works fine.
Comment #10
off commentedpatch #4 is working fine!
Comment #11
off commentedThis is working updated version
I hope to see this code in next version
Why stable version so old? (2010)
Comment #12
minoroffense commentedThere's a new dev commit. Can you reroll the patch against this code base. Then I'll review and commit it if it's all good.
Comment #14
minoroffense commentedI added the code to the dev release. Needs some testing since I had to modify the patch a bit.
Comment #15
anybodyThank you very very much, @minorOffense!