bug fix logout if there is root_path in launch (#10860)
* fix logout with root_path
* add changeset
* change
* format
---------
Co-authored-by: Azhar Izzannada Elbachtiar <azhar.izzannada@mekari.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>