[TYPO3-english] Link rel=canonical revisited - does anyone have a better solution than this?

Björn Pedersen pedersen at frm2.tum.de
Tue May 18 16:27:22 CEST 2010


Am 18.05.2010 16:09, schrieb Taras Sajuk:
> I have seen several TS solutions to generate the canonical url. But they did
> not match my requirements:
> 
>    - Dropping all GPvars except the page id was not acceptable as we are
>    using tt_news and other FE-Plugins with meaningful parameters.
>    - Using all GPvars with "addQueryString=1" and then exclude the useless
>    ones with the "addQueryString.exclude=" is not working as there seems to
>    lots of strange GPvars making their way into Google's databases, including
>    tt_news backPID and even Admin panel options.
> 
> Here is my TS solution where a list of "to be included" GPvars can be
> specified, all other will be dropped:
> 
> 
> it works, but looks ugly due to the increasing .stdWrap. chain. does someone
> have a smarter solution?
> 

Have  a look at config.linkVars, that should help you to get required
Vars into the link.

Björn



More information about the TYPO3-english mailing list