1
我正在运行Typo3 4.5.12和realurl扩展版本1.11.1。 我的网站有3种语言de,en,ch,默认语言是de,德语。Typo3 realurl在clearCache之后的链接中有错误的defaultValue
如果我清除realurl的缓存并首先调用www.example.com/site,则一切正常。
但是,如果我先调用clearCache之后调用一个像www.example.com/en/site这样的语言参数的URL,然后在www.example.com/site之后,所有链接都会获得../en/。 。在像www.example.com/en/site2这样的href标签中。
It's一样时,我先打电话clearCache后../ch/网站..或者../de/ ..
他为什么鸵鸟政策接我的时候调用默认的语言www.example.com/site链接?
我realurl的配置:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'respectSimulateStaticURLs' => 0,
),
'redirects_regex' => array (
),
'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array('no_cache' => 1),
'noMatch' => 'bypass',
),
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
'cn' => '2',
),
'defaultValue' => 'de',
'noMatch' => 'bypass',
),
),
...
我的页面配置:
simulateStaticDocuments = 0
tx_realurl_enable = 1
prefixLocalAnchors = all
linkVars = mobile(off),L
uniqueLinkVars = 1
sys_language_uid = 0
language = de
locale_all = de_DE.UTF-8
sys_language_mode = content_fallback
sys_language_overlay = 1
@konsolenfreddy嗨 - 我有一个类似的/与当前realURL相同的问题,但是您的解决方案'nomatch'=>'de'将不起作用。你还建议get/de/site1,/ en/site1等吗? – Urs
这里似乎有些东西混杂在一起,第一个设置为secont例子创建了结果,参见参考资料。 http://stackoverflow.com/questions/17109737/realurl-not-writing-prevar-for-default-language/ – Urs