Add redirectToReferer method.