Storefront Logout URL redirection - IMP

Website Visitors:

Issue: Storefront servers are load-balanced with a NetScaler VIP. When users click the logout button, they should be redirected to the home page of the Netscaler VIP again.


You have to modify the strings.en.js file in the C:\inetpub\wwwroot\Citrix\NameOfyourStore-Web\custom folder.

Backup strings.en.js file. Remove everything and add below content to the strings.en.js file.

(function ($) {
    $.localization.customStringBundle("en", {
        LogOn: "Please Wait",
        YouHaveLoggedOff:'You have logged off successfully.<br>You are being redirected to<script type="text/javascript">window.location.replace("");</script>'

Replace NetscalerVIP with the VIP fqdn of Netscaler load-balanced URL. change HTTPS to HTTP if you have HTTP for your storefront load-balancing URL.

Note that while you copy, quotation marks will be shown in a different style. Storefront may not recognize it. So, copy the text to notepad, look for double quotes and single quotes and remove them, and rewrite them with your keyboard.  Also note that there is a space between script and type.

Update: In latest versions, if above process is not working, create responder policy and action as given here:

For Citrix ADC version 13.0 71.x and higer, you should use the responder policy.

For ADC version below 13.0, and below, above process works without responder policy.

When you configure above code in string.en.js file, when you use storefront url directly without ADC, in that case, website redirects to the other url. If you have ADC, then create responder policy.

Want to learn more on Citrix Automations and solutions???

Subscribe to get our latest content by email.

If you like our content, please support us by sponsoring on GitHub below: