Skip to content

Commit 8b77760

Browse files
authored
Merge pull request #11773 from nanaya/locale-reload-full
Force browser page refresh on locale change
2 parents b412e07 + 333f638 commit 8b77760

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/Http/Controllers/HomeController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function setLocale()
210210
]);
211211
}
212212

213-
return ext_view('layout.ujs-reload', [], 'js')
213+
return ext_view('layout.ujs_full_reload', [], 'js')
214214
->withCookie(cookie()->forever('locale', $newLocale));
215215
}
216216

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{--
2+
Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the GNU Affero General Public License v3.0.
3+
See the LICENCE file in the repository root for full licence text.
4+
--}}
5+
window.location.reload();

0 commit comments

Comments
 (0)