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!

Based on your observations, the Correspondence Fragment code looks correct, and the issue is more likely related to how the original semantic URL is preserved during authentication. Outlook Web Safe Links may rewrite the URL and introduce an additional redirect before reaching Pega. I would suggest comparing the successful and unsuccessful HAR files to identify where the case ID and semantic path are being lost. Also, verify whether the ?portal=InteractionPortal parameter is required and test the URL without it. Check the authentication service configuration, session cookies, and how the original destination URL is restored after login. You can also coordinate with your Microsoft security team to test the link without Safe Links URL rewriting in a controlled environment. If the issue persists, raise a ticket with Pega Support along with both HAR files to check for any authentication-related defects or available hotfixes in 25.1.3. I could not find a confirmed hotfix for this specific issue

Please check out Deep linking and Semantic URL and Deep Linking to Assignments, the URL you provided does not look write.

IMO experience the correspondence fragments provided OOTB, are all UI Kit related. I have always had to create my own URLs. However, I have not done emails with URL in '25 or '26, so maybe that has changed.

Since the link works when pasted into a logged-out browser, I would check how Outlook Web handles the link and how Pega redirects after login.

It may be worth checking whether the original URL and its parameters are preserved during the login process.