Open-Assistant
Open-Assistant copied to clipboard
create prompt can be accessed through url, but keeps original language
- go to a language in which prompt creation is available
- change url manually to add
enlike fromhttps://open-assistant.io/es/create/initial_prompttohttps://open-assistant.io/en/create/initial_prompt - it redirects to https://open-assistant.io/create/initial_prompt
- click on dashboard
result: it seems to redirect to english but it's actually still in the previous section, problem is that this might then add prompts and reviews assuming the wrong language
@fozziethebeat I am giving this issue priority urgent. Under certain circumstances it seems that the web-frontend sends requests to the backend with a lang-tag that does not match the currently active language. I discovered this when someone told me that he did not see any ranking tasks on our staging instance. Inspecting the logs showed that requests were send with lang="de" although on corresponding screenshots the language selector drop down was set to "English" (e.g. on the dashboard).
Are people actually changing the language code via the URL?
With the localization framework we're using we have to figure out how to set the NEXT_LOCALE properly whenever someone manually goes to a different locale or make sure we're always including the url based locale to all requests.
Figured out a fix. Testing and making PR now