Closed hollowaykeanho closed 1 year ago
Please provide a short description of what you have encountered below.
When deploying multiple languages redirection, it appeared that it always goes to the default language.
Please specify the expected behavior of your usage below.
Redirection will go to last visited language page; default if not available.
Please specify the current behavior of software below.
Always goes into default language regardlessly.
Please specify all the steps required to re-produce the problem.
/en
/zh-hans
/
Please drag and drop the necessary data files (e.g. screenshot, logs, etc) below.
Bug confirmed. Caused by missing break in JS switch.
break
fixed in 926d42640bf866c61e5f2600af2bc48b539b9537
Released in https://github.com/ZORALab/Hestia/releases/tag/v1.0.0
Description
When deploying multiple languages redirection, it appeared that it always goes to the default language.
Expected Behavior
Redirection will go to last visited language page; default if not available.
Current Behavior
Always goes into default language regardlessly.
Steps to Reproduce (COMPULSORY)
/en
and/zh-hans
english + mandarin pages./
wtih language specific redirection./zh-hans
page to save the last locale./
page, observe should redirect towards/zh-hans
page. However, it will be redirected to the default/en
page instead.Attachments