Simplify the detection of the next argument in the url when login-in/out