Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Fixed wrong og:title and canonical tag (#510) #511

Open
wants to merge 1 commit into
base: v2.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Classes/Page/Part/MetatagPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,7 @@ function ($item) {
$ogTagValue = $tsSetupSeoOg[$ogTagName];
} elseif (!empty($tsSetupSeoOg[$ogTagName])) {
// Content object (eg. TEXT)
$this->cObj->start($this->tsSetupSeo);
$ogTagValue = $this->cObj->cObjGetSingle(
$tsSetupSeoOg[$ogTagName],
$tsSetupSeoOg[$ogTagName . '.']
Expand Down
4 changes: 3 additions & 1 deletion Configuration/TypoScript/setup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ plugin.metaseo {

# Default typolink configuration for canonical link
typolink {

addQueryString = 1
addQueryString.method = GET
addQueryString.exclude = no_cache, id, cHash, tx_ttnews[pointer], tx_indexedsearch[sword], tx_comments_pi1[page], tx_pagebrowse_pi1[page]
}

# blacklist (RegExp, eg /typo3/)
Expand Down