Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-7879

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 3.10.2
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: