Logout chooses first allowable logout url regardless of current domain

Thank you @jreidko this really worked for me.