Semantic Case Link Redirects to Dashboard After Login from Outlook Web

We are facing an issue in our Pega Constellation 25.1.3 application when opening a case link from Outlook Web.

We have implemented a case hyperlink in an email correspondence using a Correspondence Fragment. The link dynamically generates a semantic URL using the case ID (pyID).

Expected Behavior:

When a user clicks the case link, they should be redirected to the corresponding case after successful authentication.

Actual Behavior:

When clicking the link from Outlook Web, the user is redirected to the Pega login page. After successful authentication, the application dashboard opens instead of the requested case.

Observations:

  • The same link works correctly from Outlook Desktop.

  • Copying and pasting the URL into a logged-out browser opens the correct case after authentication.

  • The issue occurs when clicking directly from Outlook Web.

  • Opening the link in a new tab from Outlook Web also results in the same issue.

  • The generated URL contains the correct case ID and semantic route.

Current Correspondence Fragment Code:

<%
String insHandle = null;
try {
    insHandle = tools.getDatabase().getHandle(tools.getStepPage());
} catch (Exception e) {
    insHandle = tools.getProperty(".pzInsKey").getStringValue();
}

String ThreadName = "initiate-billing-disputes/"
    + tools.getStepPage().getString("pyID")
    + "?portal=InteractionPortal";

com.pega.pegarules.pub.session.url.PegaURLBuilder pegaURLBuilder =
    pega.getExternalURLBuilder();

String PublicLinkURL =
    pegaURLBuilder.usePublicLink().currentApplication().build();

if (!(PublicLinkURL.charAt(PublicLinkURL.length()-1) == '/')) {
    PublicLinkURL = PublicLinkURL + "/";
}

PublicLinkURL = PublicLinkURL + ThreadName;

if (!PublicLinkURL.equals("")) {
%>
<a href="<%=PublicLinkURL%>" target="_blank">
    <%=tools.getStepPage().getString("pyID")%>
</a>
<% } else { %>
<%=tools.getStepPage().getString("pyID")%>
<% } %>

Generated Semantic URL Format:

https://<host>/prweb/app/<app-name>/initiate-billing-disputes/<case-id>?portal=InteractionPortal

HAR Analysis:

In the unsuccessful scenario, after authentication, Pega redirects through !STANDARD and loads InteractionPortal and pyHome instead of navigating to the requested case.

Questions:

  1. Is this a known issue in Pega Constellation 25.1.3?

  2. Is there anything incorrect or missing in our Correspondence Fragment code?

  3. Could Outlook Web Safe Links processing affect the original case URL during authentication?

  4. Is there a recommended approach to preserve the semantic case URL and redirect users to the correct case after login?

  5. Is there an available hotfix or configuration change to resolve this issue?

Any suggestions or guidance would be appreciated.

Thank you!