Details
-
Bug
-
Resolution: Timed out
-
Low
-
3.4.0
-
None
-
Severity 3 - Minor
-
Description
if review comment contains a link that happens to be a link to JIRA issue or Crucible review, it is rendered fine in Crucible web app, but only the issue key/review perm id is linked. This causes links to be wrongly interpreted by gmail client for example.
For example comment https://fisheye.dev.internal.atlassian.com/cru/CR-FE-8479#c84221 contains text: https://fisheye.dev.internal.atlassian.com/cru/CR-FE-8516 which is rendered in HTML (and REST) as
https://jira.atlassian.com/browse/<a href="https://jira.atlassian.com/browse/FECRU-4720">FECRU-4720</a>
Because the first part (https://jira.atlassian.com/browse/) is recognised as gmail as URL alike it is rendered as a link, so in result I get this in gmail:
<a href="https://jira.atlassian.com/browse/" target="_blank">https://jira.atlassian.com/<wbr>browse/</a><a href="https://jira.atlassian.com/browse/FECRU-4720" target="_blank">
Notice the first <a> element navigates me to https://jira.atlassian.com/browse/ rather than to actual issue.
We could change the rendering so the whole URL is linked (if site matches) or first part is not rendered at all (just the issue key/perm id)?