# Back button not working

**URL:** <https://discuss.hotwired.dev/t/back-button-not-working/3009>\
**Category:** General\
**Created:** [June 26, 2021, 7:53pm UTC](https://discuss.hotwired.dev/t/back-button-not-working/3009 "2021-06-26T19:53:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rctneil](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/rctneil/32/2082_2.png) [@rctneil](https://discuss.hotwired.dev/u/rctneil)\
**Post date:** [June 26, 2021, 7:53pm UTC](https://discuss.hotwired.dev/t/back-button-not-working/3009/1 "2021-06-26T19:53:16Z")

</div>

Hello,

I have a page with a URL of `/cars`. I have some onpage live filters on this page and this uses the following to update the page URL:

`history.pushState({}, '', config.url)`

This updates the URL correctly to something like `/cars?make=12`.

If I then click on a resulting filtered car I get a new page with a URL like `/cars/34` and the issue I have is that when I click the Back button in my browser, the browser shows the previous URL but the page doesn’t change.

Any ideas how I can fix this?

Thanks,  
Neil
