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

Anchor links in markdown include a slash that causes them to work inconsistently

    XMLWordPrintable

Details

    Description

      The link markdown creates an extra slash in the URL if just an anchor is used. This causes the anchor link not to jump to the appropriate anchor on the page until it's clicked a second time. The behavior is also different from how Bitbucket markdown creates the link.

      Stash

      [connect](#connect)

      Produces:
      http://SERVER:7990/projects/PROJ/repos/REPO/browse/#connect

      The resulting link should be:

      http://SERVER:7990/projects/PROJ/repos/REPO/browse#connect

      Bitbucket

      [connect](#connect)

      Produces:
      https://bitbucket.org/USERNAME/REPO/overview#connect

      Workaround

      [connect](../browse#connect)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jethomas Jeff Thomas
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: