(WSS) Customized response page blinks and then does not apply the custom changes.
search cancel

(WSS) Customized response page blinks and then does not apply the custom changes.

book

Article ID: 246309

calendar_today

Updated On:

Products

Cloud Secure Web Gateway - Cloud SWG

Issue/Introduction

In the WSS Portal, if you modify the default Response Page (to customize the exception page), the customized text you add into the replacement "span" HTML tag is getting overwritten back to their default values...after your custom changes appears briefly to flash/blink first.

This is happening because after the customized text is displayed then the JavaScript file: 

exceptions.js 

...loads and overwrites the customized text.

This is expected and is working-as-designed.  (But it is confusing...and there is a work-around below.)

Resolution


EXAMPLE: 

If in the customized response page, I want to change this default text: 

"For assistance, contact your network support team"

...to this (replace "network" with "COOKIE MONSTER"): 

"For assistance, contact your COOKIE MONSTER support team"

 

...then in the "Custom Error Pages" window I would modify the following section from: 

<span localize="[contact]">For assistance, contact your network support team.</span>

...to this: 

<span localize="[contact]">For assistance, contact your COOKIE MONSTER support team.</span>

 

But when I run the "Preview" ("Preview" button) or when I go to a blocked category from WSSA client, my custom text "COOKIE MONSTER" briefly displays (blinks)...and then gets overwritten with the original/default text "network".

 

This is caused by the JavaScript variable "[contact]" (and other similar variables) having the JavaScript run and dynamically replace the customized text.



SOLUTION:

If you remove the "[contact]" variable then the problem goes away.


Change this line: 

<span localize="[contact]">For assistance, contact your COOKIE MONSTER support team.</span>


...to this (remove the text: 'localize="[contact]"'): 

<span>For assistance, contact your COOKIE MONSTER support team.</span>