FortiNAC
NOTE: FortiNAC is now named FortiNAC-F. For post-9.4 articles, see FortiNAC-F. FortiNAC is a zero-trust network access solution that provides users with enhanced visibility into the Internet of Things (IoT) devices on their enterprise networks.
FortiKoala
Staff
Staff
Article Id 197627
Description
Host Inventory 'Logout' Button Redirecting to Hub

Solution

Network Sentry Version: 7.2.x


Issue:  When the Logout" button is clicked in Host Inventory, you are redirected to the following URL:
http(s)://<hostname>/


In some cases, this redirects to http(s)://<hostname>/hub/.  Depending upon the message on the landing page, it could cause some confusion.



Workaround:

The following script redirects to /registration/ when logging out, but can be changed to any URL.  It assumes  the same domain and security level if you start it with /, but you can provide the full URL to go to a  different page.


1) Navigate to System > Portal Configuration
2) Expand Host Inventory in the tree on the left
3) Click Common
4) Paste the following in Text Content field:


<script type="text/javascript">

(function() {

    window.checkLogout = function(response) {

        if(response.logout) {

            window.location.href = "/registration/";

        }

        pollingCount = 0;

    }

})();

</script>



5) Click APPLY



Solution:  As of Network Sentry 7.3, an option will be available to change where to be redirected when clicking "Logout" in Host Inventory.


Contributors