Url参数适用于Chrome,Firefox而不适用于Safari [英] Url parameters work on Chrome, Firefox but not on Safari

查看:196
本文介绍了Url参数适用于Chrome,Firefox而不适用于Safari的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



  http:// pn。

我有一个横幅可以重定向到一个页面, example.com/go.cgi?pid=60&wmid=cc&cpid=1&prid=1&target=www.mydomain.com/valencia/hotels#?hotelName=Husa%20Dimar&ci=2014-08-22& ; co = 2014-08-24& pid = 60& utm_campaign = DE-%5BAF%5Bpn_01%7Cpub_60%5D%5D& utm_source = pn& utm_medium = affiliate

上面的网址在Chrome和Firefox上完美运行,但是在Safari上,哈希标签之后的参数不会被传递,所以它会到 www.mydomain。 com / valencia / hotels 没有参数。任何想法为什么发生这种情况,哈希特殊字符?如何解决这个问题?

解决方案

I have a banner that redirects to a page with the url in the form of:

http://pn.example.com/go.cgi?pid=60&wmid=cc&cpid=1&prid=1&target=www.mydomain.com/valencia/hotels#?hotelName=Husa%20Dimar&ci=2014-08-22&co=2014-08-24&pid=60&utm_campaign=DE-%5BAF%5Bpn_01%7Cpub_60%5D%5D&utm_source=pn&utm_medium=affiliate

the above url works perfectly on Chrome and on Firefox but on Safari the parameters after the hashtag are not passed, so it goes to www.mydomain.com/valencia/hotels without the parameters. Any idea why this is happening, is the hash special character? How can it be fixed?

解决方案

The problem is solved by replacing the hash with %23

这篇关于Url参数适用于Chrome,Firefox而不适用于Safari的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆