Typo3 4.5.12 と realurl 拡張バージョン 1.11.1 を実行しています。私のサイトには de、en、ch の 3 つの言語があり、デフォルトの言語は de、ドイツ語です。
realurl のキャッシュをクリアして最初に www.example.com/site を呼び出すと、すべて問題ありません。
しかし、最初に clearCache の後に www.example.com/en/site のような language-param を含む URL を呼び出し、その後 www.example.com/site を呼び出すと、すべてのリンクが href で ../en/.. を取得します。 - www.example.com/en/site2 のようなタグを付けます。
../ch/.. または ../de/.. でサイトを clearCache した後に最初に呼び出す場合も同じです。
リンクで 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