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

View comment button on emails are not redirecting to the correct file/comment

XMLWordPrintable

      Issue Summary

      When commenting in a commit, the URL sent via email will redirect the user to the correct file, but it won't highlight the comment, and if there are many comments on the file, it will be hard to find.

      Also, when someone replies to this comment, the URL sent via email, won't redirect the user to the correct comment or file either.

      This is reproducible on Data Center: Yes

      Steps to Reproduce

      1. Create a repository on Bitbucket Data Center.
      2. Push changes to the repository.
      3. Click to Watch the commit that was pushed to the repository.
      4. With another user, comment on the commit that was pushed to Bitbucket:
      5. The URL received via email is https://linux-82381.prod.atl-cd.net:8443/bitbucket/projects/DEV/repos/testing/commits/3750e2b21b628bc98532e509da1103b82bb73657#test.c. That won't highlight the comment:
      6. Now, if you reply to that comment, the link generated is https://linux-82381.prod.atl-cd.net:8443/bitbucket/projects/DEV/repos/testing/commits/3750e2b21b628bc98532e509da1103b82bb73657?commentId=11.
      7. This should highlight the comment and redirect to the file that was commented on. However, when opening the link, we go to:
      8. But if we manually open the file test.c, it will highlight the comment:

      Expected Results

      When commenting on the commit line, it should highlight the line or the comment itself. Also, when replying to an existing comment, it must redirect to the correct file and comment.

      Actual Results

      Provided on the "Steps to reproduce".

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

        1. image-2024-10-02-14-37-35-572.png
          79 kB
          Pablo Silva
        2. image-2024-10-02-14-40-43-032.png
          146 kB
          Pablo Silva
        3. image-2024-10-02-14-42-34-888.png
          148 kB
          Pablo Silva
        4. image-2024-10-02-14-43-44-991.png
          122 kB
          Pablo Silva

              91f2c0a8617b Navpreet Ahuja
              9c941f86b120 Pablo Silva
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: