markdown links within a document don't render properly, because they incorrectly include a query string

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Medium
    • None
    • Affects Version/s: 3.10.2
    • None

      I have a Markdown document with relative links:

          # <a name='foo'>section foo</a> #
          lorem ipsum foo foo foo 
      
          ...
      
          See the [foo](#foo) section for more information.
      

      The #foo relative link doesn't work properly. The renderer for -Stash-Bitbucket Server adds a copy of the query string to it, so instead of getting this as a result in HTML:

          See the <a href="#foo">foo</a> section for more information.
      

      if I am browsing another branch rather than the master, I get this (fragment first, then query string):

          See the <a href="#foo?at=refs%2Fheads%2Ffeature%foodoc">foo</a> section for more information.
      

      This is wrong. Fragments should be the last thing in a URL, and specifying a query string isn't necessary if it's a fragment-only reference.

            Assignee:
            Unassigned
            Reporter:
            jason_s
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: