Search code examples
typo3tx-news

If i click social media buttons of Heise Shariff from tx_news i get 404 error


The URL is only partly transferred: https://....org/artikel/

Any idea how to solve this? Any other information needed?

Latest TYPO3 version 7.6.11, tx_news 5.2 and rx_shariff 9.0.0

Thanks for your help.


Solution

  • My problem was the canonical tag the missing addQueryString (thanks for the hint to Georg Ringer)

    Here is my working code:

    page.headerData {
        700 = TEXT
        700 {
        stdWrap.typolink.parameter.data = TSFE:id
        stdWrap.typolink.forceAbsoluteUrl = 1
        stdWrap.typolink.returnLast = url
        stdWrap.typolink.parameter.intval = 1
        stdWrap.typolink.useCacheHash = 1
        stdWrap.typolink.addQueryString = 1
        stdWrap.typolink.addQueryString.method = GET
        stdWrap.typolink.addQueryString.exclude = id, cHash 
        htmlSpecialChars = 1
        wrap = <link href="|" rel="canonical" />
      }
    }