mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +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 = () => {
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user