Skip to content

optimize addQueryString.exclude for canonical URLs #54

Description

@hannesbochmann

The link which is created for the canonical URL should have the cHash and L parameter excluded. (see this post from Dimitry Dulepov)

Otherwise every L parameter could be added to URLs created by TYPO3 which than leads to an exception in realurl. But that's not exactly the problem. After all it's just a wrong configuration to not exclude the L parameter when having multiple languages. config.linkVars should be configured correct and TYPO3 will take care of adding the L parameter to links if the parameter is valid.

Excluding the "L" and "cHash" parameter should not lead to a problem.

(happens in UrlService::getCanonicalUrl())

Is it possible to add those two parameters?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions