Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23580

Using javascript:window.history.back is outdated and it is better to use onclick for the same

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Issue Summary

      Bitbucket invalid URLs contain a link to go to the previous page. This link function is currently "javascript:window.history.back". 

      However, this is outdated and browsers may block it in the future leading to undesired results. It is also not recommended due to security and accessibility concerns. 

      The right approach would be to use "<a href="#" onclick="window.history.back(); return false;">previous page</a>" instead of "<a href="javascript:window.history.back()">previous page</a>". 

       

            [BCLOUD-23580] Using javascript:window.history.back is outdated and it is better to use onclick for the same

            There are no comments yet on this issue.

              Unassigned Unassigned
              9cc073eb116c Aravind Anil
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: