Sorts out logout URL