Skip to content

Commit 9414260

Browse files
Xinyu Zhoudelvhwolfogrelunnywxiaoguang
authored
Fix UI language switching bug (#21597) (#21748)
Backport #21597 Related: * #21596 (comment) There was a bug when switching language by AJAX: the irrelevant POST requests were processed by the target page's handler. Now, use GET instead of POST. The GET requests should be harmless. Co-authored-by: delvh <[email protected]> Co-authored-by: Jason Song <[email protected]> Co-authored-by: Lunny Xiao <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
1 parent 3c07ed0 commit 9414260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/common-global.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function initHeadNavbarContentToggle() {
3535
export function initFootLanguageMenu() {
3636
function linkLanguageAction() {
3737
const $this = $(this);
38-
$.post($this.data('url')).always(() => {
38+
$.get($this.data('url')).always(() => {
3939
window.location.reload();
4040
});
4141
}

0 commit comments

Comments
 (0)