Language reset to default


I’m a designer building my website in two languages (english set as default) and added a switch, supposed to remember the language. It does this job well, until clicked on the home button that redirects to the startsite. When the foreign language is activated, it redirects to the default site .com/ instead of the active language .com/dk

I followed the docs ( and have a home.en.txt and file. Is it possible that a redirection would lead to the startsite in the active language. If you have any tips, it would be deeply appreciated!

I always use $site->url($site->language()->code()) for the home link.

Thank you very much! That does the job.