2013-06-27 46 views
0

我用的滑轨国际化,所以我的网址似乎是这样的:I18N和雪人PARAM冲突

http://localhost:3000/dashboard/index?locale=es 

我有GET方法的形式追加雪人参数去的网址:

http://localhost:3000/dashboard/index?locale=es?utf8=%E2%9C%93&dateregistration=2013-06-20 

代替:

http://localhost:3000/dashboard/index?locale=es&utf8=%E2%9C%93&dateregistration=2013-06-20 

的问题是,如果我重新加载位置(F5)...我观察到PARAM locale是:

p locale 
:"es?utf8=V" 

代替:

p locale 
:es 

这样的I18n不能正常工作。

任何想法或建议吗?

谢谢。

回答

0

?应该只在URL中的第一个参数之前。其他人都应该在&之前。

所以,你的表格需要产生的URL

http://localhost:3000/dashboard/index?locale=es&utf8=%E2%9C%93&dateregistration=2013-06-20 

...注意utf8以前&

+0

谢谢Chowlet,显然这是问题所在。当我提交表格时,我不知道该怎么做。 – user1364684

+0

@ user1364684:如果您可以显示您的表单代码,我们可能会提供帮助。通常我会期待它发生。 – Chowlett