-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
Describe the bug
If you use the AdminUrlPrefix setting, the AdminCulturePicker drop down stops working.
To Reproduce
Downloaded the latest code generation templates and create a fresh Orchard Core site with:
dotnet new occms -o TestSite
dotnet new sln --name Test
dotnet sln add TestSite/TestSite.csproj
Open appsettings.json and add this after the default logging entry:
"OrchardCore": {
"OrchardCore_Admin": {
"AdminUrlPrefix": "blah"
}
}
Open and run Test.sln, create a new site with the "Blank" recipe and Sqlite database.
Go to /blah, log in, and then in "Configuration > Features," enable features:
Admin Culture Picker (OrchardCore.Localization.AdminCulturePicker)
Localization (OrchardCore.Localization)
In "Settings > Localization > Cultures," add a second culture, e.g. by selecting "ja (Japanese)" and clicking the "+ Add culture" and "Save" buttons.
A message is displayed saying "Site settings updated successfully." and the default culture is shown in the new culture picker select list at the top right of the page.
Try to select the newly added Japanese culture. The page flickers and neither the site UI nor the drop down change to Japanese.
Close the site. Remove the AdminUrlPrefix setting, run the site, and go to /admin. The drop down now works as expected, changing the culture of the site.
Expected behavior
It should work whether AdminUrlPrefix is being used or not.
Orchard Version
2.1.6