Suite CRM Logout- External Link

Hi,
I created a menu (Profile )in suite CRM Module Builder, after that I created a external link in themes/suiter/tpls/header_tpl. Its working fine.

I have a logout function there. by clicking that logout function , I get the current url and stored it into a hidden textbox using PHP and I have appended this parameter (index.php?module=Users&action=Logout) Finally it comes like https://www.suitecrm.com/index.php?module=Users&action=Logout.

It redirects to login page successfully, but if I click previous icon in browser or Alt+right arrow it comes again to the my external page.

But it works perfectly in my localsystem. How to solve this in online?