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.
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 / .

bleenders
 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.