Smartlinks break when using fragments in them and instead redirect to base URL

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      Issue Summary

      Links containing "#" fragments (such as branch/compare links in Bitbucket) are stripped in Smartlinks, which renders the base URL instead of the full URL.

      Expected Results

      The Smartlink to navigate to the correct URL, including those with fragments (#) in them.

      Actual Results

      An example URL, like:

      https://bitbucket.org/somerepo/areponame/branches/compare/issue/ISSUE-1234-some-issue-summary#diff  
      

      becomes

      https://bitbucket.org/somerepo/areponame/src/release/
      

      Steps to Reproduce

      Create a smart link containing a fragment (#).

      Workaround

      In Jira, when using URL custom fields (which use the smart links feature), you can switch to a short-text custom field. Short-text custom fields support smart links but don't have strict URL validation like URL fields.

            Assignee:
            Unassigned
            Reporter:
            James W
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: