Hi! i have a question about page language url
i have a site with 2 language, default and greek.
so in my home i set empty the language field for my default language and el (/el/) for my second language.
so if i want to navigate from my default lang page to other lang page i just put the /el/ after my domain.
my problem is that i want to get the page language url (el/ , en/, de/...) but i can't find the right syntax of $user->language to get it i try $lang = $user->language->name; but i get the name of my lang,
i try $lang = $user->language->id; but i get a number (the id of my lang), can anyone tell me if i can get the /el/ using the above syntax?