[英]Chrome Creating issue for Intrapage link in Anchor tag
I am having a unique issue which I never came across. 我遇到了一个从未遇到过的独特问题。 In my Case when I use the "#filterPop"
in the Url chrome is appending additional slash after / like : "#/filterpop"
. 在我的案例中,当我在网址chrome中使用"#filterPop"
,是在/后面加上其他斜杠: "#/filterpop"
。
Can someone Suggest how to eliminte this behaviour ? 有人可以建议如何消除这种行为吗?
PS: I am using Angular JS but I am not using any Routing. PS:我正在使用Angular JS,但未使用任何路由。
Thanks. 谢谢。
set html mode like $locationProvider.html5Mode(true);
设置html模式,例如$locationProvider.html5Mode(true);
in app.js (main js) file and set base tag in html file 在app.js(主要js)文件中,并在html文件中设置基本标记
<base href='/'>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.