ant-design/site/theme/template
YuyingWu a5f136f334 antD首页从英文切换到中文时,replace导致链接错误 (#5050)
首页从英文转到中文,点击header上的“中文”时,链接会跳到 https://ant.design/index-cn/ant.design/ (Chrome)或者 https://index-cn/ant.design/ (Safari)

bug来自handleLangChange函数下,最后对location.href.replace操作时出错,原因来自replace匹配到location.href的第一个/
('https://ant.design/').replace('/', '/index-cn') 的运行结果是 https:/index-cn/ant.design/ 

为了避免replace匹配到location.href的第一个/,我建议的方案是使用 location.origin + location.pathname.replace

最后,感谢antD团队开发出那么棒的UI~
2017-02-26 00:23:04 +08:00
..
Content site: fix aside menu 2017-02-25 15:10:23 +08:00
Home change version slector position (#4799) 2017-02-09 19:46:23 +08:00
IconSet Add aliases for icon naming style, close #4758 2017-02-04 18:10:25 +08:00
Layout antD首页从英文切换到中文时,replace导致链接错误 (#5050) 2017-02-26 00:23:04 +08:00
BrowserDemo.jsx upgrade eslint-config, close #2811 2016-08-23 21:00:35 +08:00
NotFound.jsx site: reduce bundle size 2017-01-17 15:24:13 +08:00
utils.jsx Fix bug of switch language in iOS 2017-02-21 13:36:17 +08:00