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

XMLWordPrintable

    • 1

      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>". 

       

            Assignee:
            Unassigned
            Reporter:
            Aravind Anil (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: