typo3-realurl
typo3-realurl copied to clipboard
TYPO3 7.6 remove trailing slash from speaking_url
I'm trying to remove the trailing slashes from the generated urls. This is my current setup:
TYPO3 7.6 RealUrl: Latest
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
'_DEFAULT' => array (
'init' => array (
'enableCHashCache' => true,
'adminJumpToBackend' => true,
'enableUrlDecodeCache' => true,
'enableUrlEncodeCache' => true,
'disableErrorLog' => true,
'appendMissingSlash' => false,
'acceptHTMLsuffix' => false,
'defaultToHTMLsuffixOnPrev' => false
),
etc...
Now, after clearing all realurl tables and caches, the urls are still being generated with a trailing slash.
![Screenshot 2020-02-06 at 16 57 45](https://user-images.githubusercontent.com/3603346/74011229-8e989b80-4987-11ea-8cbe-dd64f60654b5.png)
The rest of the RealUrl config is working fine. My workaround was to remove the slash with htaccess, but that should not be the solution. Can anybody help?
appendMissingSlash
is not about generating urls. The option says missing, which means... Well, it is described in the docs.
At the moment it is not possible to remove trailing slash. You can probably use a encodeSpURL_postProc
hook for that.