Link you logo to the correct home page
Permalink
Hi there,
I was wondering if someone knows if there is a less circuitous way to get the path to the home page of the current language. My current fix just feels ridiculous.
EDIT:
Or better yet, change the option "Redirect home page to default locale." in /dashboard/system/multilingual/setup to "Redirect home page to current locale.". That way we can just link to / .
I was wondering if someone knows if there is a less circuitous way to get the path to the home page of the current language. My current fix just feels ridiculous.
echo Section::getByLanguage(Section::getCurrentSection()->msLanguage)->cPath
EDIT:
Or better yet, change the option "Redirect home page to default locale." in /dashboard/system/multilingual/setup to "Redirect home page to current locale.". That way we can just link to / .