简体   繁体   English

为什么当我返回上一页时,我的网址不正确(iOS下为Chrome,浏览器为后退)

[英]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.

相关问题 我需要使用浏览器按钮返回上一个动态页面 - I need to use the browser button to go back to the previous dynamic page 当我单击浏览器的“后退”按钮时,它应该转到同一页面的上一个活动 - when I clicking on Back button of browser , it should go to the previous activity of the same page 当我单击浏览器中的后退按钮时,我需要将上一页重新加载到“另一个 URL” - I need to reload the previous page to 'another URL' when I click on back button in browser 单击浏览器后退按钮时刷新当前页面(chrome) - Refresh the current page when i click the browser back button(chrome) 单击浏览器的“后退”按钮时,返回上一页的上一个位置 - Go Back to the Previous Location on Previous Page when Clicking Browser Back Button 防止浏览器后退按钮不转到上一页 - Prevent browser back button to not go to previous page 浏览器 go 回到上一页的活动div - Browser go back to active div in previous page 为什么我必须按两次返回才能回到Backbone? - Why do I have to press back twice to go back in Backbone? 即使更改了哈希值,如何在网页中单击浏览器后退按钮时返回上一页? - How to go back to the previous page when browser back button is clicked in a webpage even when the hash is changed? 当按下浏览器后退按钮(在 Javascript 中)时,如何将特定变量传递给 go 返回上一页? - How to pass a specific variable to go back to the previous page when the browser back button is pressed (In Javascript)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM