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

Unable to access the Contributions Guidelines file on the PR

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 8.19.11, 8.9.21, 9.4.0
    • 8.9.0, (32)
      8.9.1, 8.9.2, 8.9.3, 8.9.4, 8.9.5, 8.9.6, 8.9.7, 8.9.8, 8.9.9, 8.9.10, 8.19.0, 8.9.11, 8.19.1, 8.9.12, 9.0.0, 8.19.2, 8.9.13, 8.9.14, 8.19.3, 8.19.4, 8.9.15, 8.9.16, 8.19.5, 8.19.6, 8.19.7, 8.9.18, 9.1.0, 9.0.1, 8.19.8, 9.2.0, 8.19.9, 9.3.0
    • Pull Requests, UI

      Issue Summary

      Clicking the Contributions Guidelines file button on the PR causes the webpage to break, resulting in the following error screen.

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Create a contribution file in the root directory of the master/main branch.
      2. Insert an anchor tag within the contribution guideline file as shown below.
        # Markdown syntax guide
        
        Bitbucket Data Center uses Markdown for formatting text, as specified in CommonMark (with a few extensions).
        
        ## You can use Markdown in the following places:
        
        any pull request's descriptions or comments, or
        in README files (if they have the .md file extension).
        
        
        *<a name="Anchor Tag"></a>*
        

      Expected Results

      When you click the "Contribution guidelines" button, the contribution guidelines file should be displayed correctly.

      Actual Results

      When you click the "Contributions Guidelines" button, the following error message appears.

      Workaround

      Include the href attribute in the anchor tag within the contribution guideline file present in the root directory of the master/main branch.

       *<a name="Anchor Tag"  href="#"></a>*

          Form Name

            [BSERV-19686] Unable to access the Contributions Guidelines file on the PR

            There are no comments yet on this issue.

              482cfebf5b5a Matthew Hanselman
              83b3279fad28 Aman Shrivastava
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: