Added selected locale if page not root

pull/11639/head
Abdelrahman 2024-02-15 04:49:06 +02:00
rodzic 8027cad6f0
commit 62c597b786
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -295,6 +295,7 @@ class BrowseView(View):
active_locale_id = selected_locale.pk
else:
active_locale_id = Locale.get_active().pk
selected_locale = get_object_or_404(Locale, id=active_locale_id)
# we are at the Root level, so get the locales from the current pages
choose_url = reverse("wagtailadmin_choose_page")