Messes up browser history


#1

This is from just a couple minutes or something.

Really screws up entire history.


#2

Yes, it does seem to mess up the browser history. It’s because every time you change a line or add a new letter it changes the path so that if you refresh the page, it won’t start from say your readme file or something. It continues from where you ended last. However, I suggest that this should be made a setting or an option.


#3

Or just not pushed to history constantly.

Why not just check for onbeforeunload and then set the url to refresh to?


#4

There’s also history.replaceState, which changes the URL without adding a new entry to the back button history. (I don’t know if it affects browser history)


#5

In your user options (click your avater on the top-right of the editor) you can uncheck “refresh app on changes” to stop this from happening.


#6

I have a custom watch.json.

Will hitting that option mess with anything?


#7

this setting keeps the browser window from refreshing - the app will keep deploying though, based on the configuration of your watch.json.


#8

It looks like the history entries are from the https://glitch.com/edit/#!/projectname page, not the https://projectname.glitch.me page. How would disabling refreshing the app on changes stop the editor’s URL from changing?


#9

I think you’re right about that - we probably need to use replaceState when updating the URL.


#10

We just released an update that addresses this issue, let us know if it’s working out better for you, thanks!