Return to the previous popup or page icw using a link

I want to open the same page from multple locations using a record parameter.

This works using a link with a dynamic url like: admin/…/popups/…/filterbytk/[Current record/ID]

But when i hit the submit button on the target page, the user is not returned to the previous page (where the link was used) but to the parent page.

The “After succesful submission” event handler is set to “Return to the previous popup or page”, but looks like to work as: “return to the parent page”

What am i doing wrong?

Hello, yes, that’s how it’s currently being handled; we suggest you set the block and pop-up as a template and use it elsewhere, then you won’t have this problem.