[英]Why when I go back to previous page, I have an incorrect url (Chrome under iOS, browser back)
Single page application using Backbone. 使用Backbone的单页应用程序。
I navigate to page 1 where the url is baseurl/public#items#254
, after that I go to page 2 where the url is baseurl/public#itemname
. 我导航到URL为
baseurl/public#items#254
第1页,此后,我访问URL为baseurl/public#itemname
第2页。 I hit browser back button and I'm back to page 1 but the url is changed to baseurl/public#items%23254
. 我点击了浏览器的后退按钮,然后返回到第1页,但URL更改为
baseurl/public#items%23254
。 I don't understand why the page 1 url is not the same when I navigate back and forth to it. 我不明白为什么来回浏览页面1的网址时会不一样。
I can reproduce this only to Chrome browser under iOS platform. 我只能在iOS平台下的Chrome浏览器中重现此内容。 Anyone had this problem and found a solution?
有人遇到这个问题并找到解决方案吗?
you need to separate by /. 您需要用/分隔。 Example: baseurl/public#items/254 - router 'items(/:id)'
示例:baseurl / public#items / 254-路由器“ items(/:id)”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.