[TYPO3-english] Solved (was: Re: CoolURI and rel="canonical")

Axel Joensson a.joensson at web.de
Sun Jun 13 19:47:46 CEST 2010


I wrote:

> with the following TS I write a line with the canonical URL in the
> document's head:
> 
> lib.canonical = TEXT
> lib.canonical {
>         typolink {
>                 parameter = {page:uid}
>                 parameter.insertData = 1
>                 useCacheHash = 1
>                 addQueryString = 1
>                 addQueryString.method = GET
>                 addQueryString.exclude = id
>                 returnLast = url
>         }
>         wrap = <link rel="canonical" href="http://www.example.com/|" />
> }
> page.headerData.930 < lib.canonical

Changing the TS above to

lib.canonical = TEXT
lib.canonical {
        typolink.parameter.data = TSFE:id
        typolink.returnLast = url
        wrap = <link rel="canonical" href="http://www.example.com/|" />
}
page.headerData.930 < lib.canonical

solved the problem.


More information about the TYPO3-english mailing list