Fix logout redirect from non home page.