Commit eee6b22c authored by Jens Jacobsen's avatar Jens Jacobsen

Fix realurl configuration for extension key urls

parent 3cc4adae
Pipeline #2024 passed with stages
in 1 minute and 29 seconds
......@@ -2,6 +2,12 @@
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment';
if (!function_exists('encodeTitleUserProc')) {
function encodeTitleUserProc($params) {
return $params['pObj']->getUtility()->convertToSafeString($params['title'], $params['encodingConfiguration']['spaceCharacter']);
}
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'] = [
'init' => [
'appendMissingSlash' => 'ifNotFile,redirect[301]',
......@@ -66,8 +72,9 @@ $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT'] = [
'addWhereClause' => ' AND deleted=0 AND hidden=0',
'useUniqueCache' => 1,
'useUniqueCache_conf' => [
'encodeTitle_userProc' => 'encodeTitleUserProc',
'strtolower' => 1,
'spaceCharacter' => '-',
'spaceCharacter' => '_',
],
'enable404forInvalidAlias' => 1,
'autoUpdate' => 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment