Remove next param from logout (#1838)