typo3-realurl icon indicating copy to clipboard operation
typo3-realurl copied to clipboard

TYPO3 7.6 remove trailing slash from speaking_url

Open MrMooky opened this issue 4 years ago • 2 comments

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

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?

MrMooky avatar Feb 07 '20 07:02 MrMooky

appendMissingSlash is not about generating urls. The option says missing, which means... Well, it is described in the docs.

dmitryd avatar Apr 25 '20 12:04 dmitryd

At the moment it is not possible to remove trailing slash. You can probably use a encodeSpURL_postProc hook for that.

dmitryd avatar Apr 25 '20 12:04 dmitryd