< Home

portal redirect js enable

Function

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.

Format

portal redirect js enable

undo portal redirect js enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable the function of inserting a JavaScript file during Portal direction.

<HUAWEI> system-view
[HUAWEI] portal redirect js enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >