Navigating to a URL without a trailing slash (e.g., https://example.com/login) redirects the browser to an SSO login page. Accessing the exact URL with a trailing slash (e.g., https://example.com/login/) bypasses the redirect & loads the web page we are attempting to redirect.
Product: Edge SWG / ProxySG
Policy: Visual Policy Manager (VPM) or Content Policy Language (CPL)
Browser: All
Deployment: SaaS & On-Premises
The VPM interface defaults to an Exact Match field. If an administrator types /login into this field, SGOS doesn't compile a substring match. Instead, it compiles the rule as url.path.exact="/login". This evaluates the path and only matches the contents exactly as provided, including the forward slash. A trailing slash is outside of this boundary, causing the match to fail.
Configure the policy engine to compile the destination object as url.path.substring="login". SGOS will then evaluate the path portion only, ignoring any slashes, query strings, or fragments.
Visual Policy Manager (VPM) The VPM interface hides the required modifier inside the Advanced Match dialogue.
Open the Visual Policy Manager.
Locate the layer containing the redirect rule.
Click the Destination object & select Edit.
Select the Advanced Match radio button. This action reveals discrete drop-down menus for the scheme, host, port, & path fields.
In the Path Operator row, select Contains from the drop-down menu.
Enter the "login" (without quotes) in the text field.
Click Apply Policy.
Content Policy Language (CPL)
To configure this via CPL, use the substring evaluation: url.path.substring="/login"