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.

Comments

joachim’s picture

Status: Active » Needs review
StatusFileSize
new1.6 KB

Here's a patch for that which adds an extra option to the handler.

anybody’s picture

Please review this patch to get it into the next dev release.

I will have a look myself too.

tedbow’s picture

What 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

tedbow’s picture

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

michael_cristal’s picture

comment removed

filsterjisah’s picture

Status: Needs review » Reviewed & tested by the community

patch #4 works

denes.szabo’s picture

Patch #4 seems fine. Thx!

mr.york’s picture

Patch #4 works for me.

nagy.balint’s picture

Issue summary: View changes

Same here, patch #4 works fine.

off’s picture

patch #4 is working fine!

off’s picture

StatusFileSize
new9.89 KB

This is working updated version

I hope to see this code in next version

Why stable version so old? (2010)

minoroffense’s picture

Status: Reviewed & tested by the community » Needs work

There'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.

  • minorOffense committed 6fc513b on 7.x-1.x authored by tedbow
    Issue #1722258 by joachim, tedbow: add an option to add the current page...
minoroffense’s picture

Status: Needs work » Fixed

I added the code to the dev release. Needs some testing since I had to modify the patch a bit.

anybody’s picture

Thank you very very much, @minorOffense!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.