fix: use referer in action

So when the action is used from outside of the context the user
stay on it's current page.