use logout page to properly handle logout on various containers

(cherry picked from commit f6ab94d44e4908e3bc07e35a4f123e47e361ad2c)