Jump to content
Welcome to our new Citrix community!

Citrix Storefront Logoff Action for Edge browser via API

Naveen Arya1709162798

Recommended Posts

I need to configure afterWebLogoffComplete option under "script.js" in Storefront for Microsoft edge & chrome browser so that when user logoff from Citrix Storefront they should redirect to their homepage/respective location set in script.js.


Below is the code created in script.js which works fine for chrome but doesn't work in MS edge.


CTXS.Extensions.afterWebLogoffComplete = function() {
    window.setTimeout(function() {
        window.location.href = "/cgi/logout";
        //window.location.href = "about:home";
        if(navigator.userAgent.indexOf("Edg") != -1){
            window.location.href = "about:home";

        else if (!!window.chrome){ // The rest of the world
            window.location.href = 'https://www.google.com/_/chrome/newtab';
        else if (!!document.documentMode) { // For IE 
            window.location.href = "about:home";
        window.location.href = "about:home";
    }, 1);
    return false;

Need assistance to fix this.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...