fix: use referer in action

So when the user call an action from outside the context, he stays
on the current page