mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-11 10:05:07 +08:00
site: fix language switch in Firefox, close: #4360
This commit is contained in:
parent
15b81d7ec8
commit
4db6d3b915
@ -42,7 +42,7 @@ export default class Header extends React.Component {
|
|||||||
|
|
||||||
handleLangChange = () => {
|
handleLangChange = () => {
|
||||||
const pathname = this.props.location.pathname;
|
const pathname = this.props.location.pathname;
|
||||||
location.pathname = utils.getLocalizedPathname(pathname, !utils.isZhCN(pathname));
|
location.href = location.href.replace(location.pathname, utils.getLocalizedPathname(pathname, !utils.isZhCN(pathname)));
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user