Jump to content
Welcome to our new Citrix community!

Can SF 3.12 store webpage be disabled and redirected to new page?


Recommended Posts

What do you mean that you want to "disable" a store's webpage?

Do you mean to change the default site for a store? For a StoreFront server?

Do you want to redirect users to a different StoreFront server entirely?

 

Is this for internal or external users?

Link to comment
Share on other sites

12 minutes ago, Sam Jacobs said:

What do you mean that you want to "disable" a store's webpage?

Do you mean to change the default site for a store? For a StoreFront server?

Do you want to redirect users to a different StoreFront server entirely?

 

Is this for internal or external users?

 

My StoreFront server has several stores published.  I want to get rid of some of them (since they are no longer needed), but if I simply delete said store, I am sure I will get helpdesk calls.

 

I would like to redirect the users from said store to a different store on the same StoreFront server.

 

This is for internal users... so I do not have NetScaler (or ADC) involved.

Link to comment
Share on other sites

Here's one way ... modify the following as needed, and add it to the script.js file in the ..\<Store>Web\custom directory:

// when users click OK, they will be redirected to this site
function newSite() {
   window.location.replace("http://www.google.com");
}

// this will be shown before the users log in
CTXS.Extensions.beforeLogon = function (callback) {
    doneClickThrough = true;
    CTXS.ExtensionAPI.showMessage({
        messageTitle: "Please update your bookmarks!",
        messageText: "The site for this feature has changed to <a href='http://www.google.com/'>Google</a>. You will now be redirected.",
        okButtonText: "OK",
        okAction: newSite
    });
};


 

  • Like 1
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...