CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #8545

Use typolink function to generate "realurl" urls

Added by Robert Heel almost 3 years ago. Updated over 2 years ago.

Status:New Start date:2010-06-29
Priority:Should have Due date:
Assignee:- % Done:

100%

Category:-
Target version:-
Votes: 0

Description

I'm using the new realurl feature "_DOMAINS" to setup a multilingual site. In this case the sr_language_menu links are not correct (missing domain name).

This patch change the linkData to typolink function. Not completely tested now.

sr_language_menu_realurl.diff (917 Bytes) Robert Heel, 2010-06-29 13:28

History

Updated by Lina Wolf almost 3 years ago

I cannot confirm this patch to work for me. When using it on a trilingual page, each page has its own Domain and using tt_news.

After I switched from the default language in another language the Default language link will link to the active language.

I think its due to the fact that &L=0 is missing.

Updated by Robert Heel almost 3 years ago

Hi Lina, do you have rlmp_language_detection installed?

Updated by Jocmoc almost 3 years ago

  • % Done changed from 0 to 100

Hey, for me it works, if I also removed the lines above:

if (!$this->rlmp_language_detectionLoaded) {
$GLOBALS['TSFE']->linkVars = preg_replace('/&L=0/' , '', $GLOBALS['TSFE']->linkVars);
}

remove this, then the &L=0 will not be replaced. Then it works without the rlmp_language_detection extension.

Help me if I'm wrong ;-)

Updated by Tymoteusz Motylewski over 2 years ago

I used this patch and commented two lines above as Jocmoc suggested. It's working fine - the domain in link is right, but the page path isn't translated.
The page path is in language of the site you are in.
For example (when you are on the English site):
English page:
en.domain.com/english-title.html
de.domain.com/english-title.html

but if you are on the German site it looks like this:
en.domain.com/german-title.html
de.domain.com/german-title.html

I don't have rlmp_language_detection extension installed.
Did you notice similar behaviour in your installations?

Also available in: Atom PDF