Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TYPO3 7.6 remove trailing slash from speaking_url #679

Open
MrMooky opened this issue Feb 7, 2020 · 2 comments
Open

TYPO3 7.6 remove trailing slash from speaking_url #679

MrMooky opened this issue Feb 7, 2020 · 2 comments

Comments

@MrMooky
Copy link

MrMooky commented Feb 7, 2020

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?

@dmitryd
Copy link
Owner

dmitryd commented Apr 25, 2020

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

@dmitryd
Copy link
Owner

dmitryd commented Apr 25, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants