This problem is not #! It works fine when there is no #! It will increase ## first! ? * Then replace it, but when it is refreshed again, will there be more? **
so My temporary solution is
Context.prototype.save = function() { var page = this.page; if (hasHistory && page._window.location.protocol !== 'file:') { page._window.history.replaceState(this.state, this.title, page._hashbang && this.path !== '/' ? '#!' + (this.path.replace(location.search,'')) : this.canonicalPath.replace(location.search,'')); } };
First remove "search" when preparing to add path and canonicalPath
Also hope to have a better solution, thank you, please forgive my English, sorry
This problem is not #! It works fine when there is no #! It will increase ## first! ? * Then replace it, but when it is refreshed again, will there be more? **
ps:
http://localhost:3001?***
->http://localhost:3001/pc/?***#!/bank
refreshedhttp://localhost:3001/pc/?***#!/bank
->http://localhost:3001/pc/?***#!/bank?***
refreshedhttp://localhost:3001/pc/?***#!/bank?***
->http://localhost:3001/pc/?***#!/bank?***?***
so My temporary solution is
Context.prototype.save = function() { var page = this.page; if (hasHistory && page._window.location.protocol !== 'file:') { page._window.history.replaceState(this.state, this.title, page._hashbang && this.path !== '/' ? '#!' + (this.path.replace(location.search,'')) : this.canonicalPath.replace(location.search,'')); } };
First remove "search" when preparing to add path and canonicalPathAlso hope to have a better solution, thank you, please forgive my English, sorry