ZTNA users must authenticate via a SAML Identity Provider.
When users initially access a URL that contains a '#' character and are redirected to authenticate to the SAML Identity Provider, the user is not redirected to the original URL they were going to after a successful authentication.
HAR file would appear to show that the original path is truncated, and hence the redirect post authentication is not going to the URL initially accessed. Everything after the '#' in the URL is missing.
The RelayState parameter confirms that the URL is truncated, and this is where the user is sent post authentication. The SAML RelayState is the HTTP parameter used during Single Sign-On (SSO) to preserve application state. It acts as a redirect token that ensures a user is sent back to their originally requested deep link or a specific landing page after authenticating, rather than a generic default home page.
If the user is already authenticated to ZTNA before accessing the URL that includes a '#' character, then the page appears as expected.
ZTNA.
SAML Identity Provider.
The # character in a URI introduces the fragment identifier (often called the hash or anchor). The fragment identifier (RFC 3986) is strictly a client-side directive where:
For example, if you visit https://example.com/page.html#section3, the server only cares about finding page.html. Once the browser downloads page.html, it looks for an element with id="section3" and automatically scrolls down to it.
This issue will happen regardless of ZTNA, but whenever any redirects where the original URL needs to be maintained. To workaround the issue, one can either
The HAR file when the issue was reported showed the following key pieces of info: