Skip to content

Commit 7e40cee

Browse files
wxiaoguangdelvhwolfogrelunny
authored
Fix UI language switching bug (#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 <dev.lh@web.de> Co-authored-by: Jason Song <i@wolfogre.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent 20674dd commit 7e40cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: web_src/js/features/common-global.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function initHeadNavbarContentToggle() {
3737
export function initFootLanguageMenu() {
3838
function linkLanguageAction() {
3939
const $this = $(this);
40-
$.post($this.data('url')).always(() => {
40+
$.get($this.data('url')).always(() => {
4141
window.location.reload();
4242
});
4343
}

0 commit comments

Comments
 (0)