redirect to previous page with get params after login