-
Type:
Bug
-
Resolution: Fixed
-
Priority:
High
-
Component/s: Integration - Confluence
-
6
-
Severity 3 - Minor
-
1
Issue Summary
When a Jira Site (Site A) is connected to a Confluence Site (Site B) with a different URL, directly clicking on those links throws a 401 Error. However, clicking the "Preview" pulls up the requested page.
In this scenario the Products are on different sites and are connected via App Link.
Steps to Reproduce
- Create a site (Site A)
- Activate Jira on that site
- Create a different site (Site B)
- Activate Confluence on that site
- Create an Application Link between Sites A and B
- In a Jira issue create a link to a page on Confluence
- Directly click that link to the Confluence page
- The exception: "Encountered a "401 - Unauthorized" error while loading this page."
Expected Results
The linked Confluence page is displayed and preview is visible in the frame.
Actual Results
When directly clicking the link. A 401 Error appears and the payload does not render.

In the logs, we see that the request is pointed back to Site A (where no Confluence product exists) and not to the actual destination on Site B.
https://<SITE A>.atlassian.net/wiki/spaces/<REDACTED>?parentProduct=JSW&initialAllowedFeatures=byline-contributors.byline-extensions.page-comments.page-reactions.inline-comments&themeState=dark%253Adark%2520light%253Alight%2520spacing%253Aspacing%2520colorMode%253Alight&embeddedConfluenceSource=jiraIssueViewLinkedMentionedPage&locale=en-US
However, clicking the 'Preview' button on the same link works as expected.

In the logs, we see that it is pointing to the intended URL.
https://smart-links-cc-embed.prod.atl-paas.net/?hostname=<SITE B>.atlassian.net&contentId=<REDACTED>&parentProduct=smartlink&enablePageComments=true&enableInlineComments=true&userId=6064344200b79f0070c8fa5a&userInfo=atlassianAccount&spaceKey=DP&themeMode=light
As there is no Confluence product on Site A it appears the system is defaulted to the source site.
Workaround
Users can click the 'Preview' button in the tool tip or can click the direct link in the error popup.
