Did anything change that would effect Back Button code?

On one page, I have
<a class="btn btn-primary" style="margin:5px;" onclick="history.back()">Go Back</a>
and when pressed, it simply goes back to the previous page you were on.

Well, I’ve changed literally nothing the past few days and one of my users brought to my attention that my back button stopped working, which I confirmed on multiple devices. Did anything on Discourse’s end change?