[TYPO3-english] realurl not mapping &L parameter
Alexis Mauger-Brun
mauger.a at gmail.com
Sat May 13 17:24:51 CEST 2017
Hi all,
I've been playing with Typo3 for a long time (starting with 4.x) but I consider myself a beginner and I still have trouble understanding some of the mechanisms.
Here I'm stuck with a problem with (I presume) realurl.
It's seems to me that it's almost working: most of the links use correct urls (such as www.mysite.com/mypage1/ or www.mysite.com/mysection1/mypage11/ in the menu).
But I've a problem with the "language selector" : the generated link for the localization of the page www.mysite.com/mypage1/ is www.mysite.com/meinseite1/?L=1 instead of www.mysite.com/de/meinseite1/ (both links are working if I enter them in a browser btw).
I don't understand why. I tried to install the Introduction Package on another typo3 site on the same server and links are corrects on this installation. It's probably something with my configuration but I cannot figure out what.
I'm using Typo3 8.7.1 on nginx with Bootstrap Package 8.0.0 and Speaking URLs for TYPO3 2.2.0
Realurl configuration (realurl_autoconf.php file in typo3conf folder) are almost the same between both installation and seem correct to me.
I added the following lines in my template (constant section) :
-----
page.theme.language.languageValue = 0,1
config {
sys_language_uid = 0
language = fr
locale_all = fr_FR.UTF-8
htmlTag_setParams = lang="fr" dir="ltr" class="no-js"
}
[globalVar = GP:L = 1]
config {
sys_language_uid = 1
language = en
locale_all = en_US.UTF-8
htmlTag_setParams = lang="en" dir="ltr" class="no-js"
}
[global]
-----
As I said, url are correctly interpreted by nginx. My only issue is with the language menu which still uses &L parameter : I made my menu by using "Language.html" partial from the bootstrap extension as a base where I simply changed the language labels to match the languages on my site.
Any help would be really appreciated :)
Regards.
Alexis
More information about the TYPO3-english
mailing list