The portal redirect js enable command enables the function of inserting a JavaScript file during Portal redirection.
The undo portal redirect js enable command disables the function of inserting a JavaScript file during Portal redirection.
By default, the function of inserting a JavaScript file during Portal redirection is disabled.
Usage Scenario
Before Portal users are authenticated, the device redirects the HTTP or HTTPS requests sent from clients to the Portal server. To prevent heavy burdens on the server caused by a large number of HTTP or HTTPS requests sent from the clients and to ensure proper display of the Portal login page, enable the function of inserting a JavaScript file during Portal redirection. After this function is enabled, the HTTP or HTTPS response packets sent from the server carry a JavaScript file. The client browser parses the JavaScript file for redirection, and then performs Portal authentication.
Precautions
The client browser must support and enable the JavaScript function.