This avoids the loop when logging out. being redirected to a page requiring to be logged in and ending up where started
Looks good to me.
Thanks
Pull-Request has been merged by pingou