I have ruby on rails application and I am using a lot of ajax in order to make the web page dynamic and to change only specific part of it.

In some cases, when the page content is changed with ajax, the URL is not changed which I am finding as incorrect and not proper behavior.

For, example:

I have a forgotten password functionally where a email is send to the user with a link for edit. The link looks as follows:

```
http://127.0.0.1:8080/password_resets/-k63MeQcBkCZt3fovkfsTA/edit

```

and when the user open it and change his password, I am submitting the form with ajax. So, a message that the password is changed and the user can log in now is displayed, but the URL remains the same.

Which is the normal way to fix this in Rails?