]> source.dussan.org Git - gitea.git/commit
Fix UI language switching bug (#21597) (#21748)
authorXinyu Zhou <i@sourcehut.net>
Thu, 10 Nov 2022 02:13:36 +0000 (10:13 +0800)
committerGitHub <noreply@github.com>
Thu, 10 Nov 2022 02:13:36 +0000 (10:13 +0800)
commit9414260d67b972e5e35327189b9c53fa3dd574ac
treeebc96200e5be78f09878274e0caaf6169c9ffb20
parent3c07ed091174f4258ae930b5516b2cf773ac313d
Fix UI language switching bug (#21597) (#21748)

Backport #21597

Related:
* https://github.com/go-gitea/gitea/pull/21596#issuecomment-1291450224

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>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
web_src/js/features/common-global.js