plugin.metaseo{
    metaTags {
        opengraph {
            type = website
            site_name >
            title.override.field = tx_metaseo_pagetitle
            description >
            description = TEXT
            description.data = page:description
        }
    }
}

# Adding og:url to/after metaseo
page.headerData.84113102 = TEXT
page.headerData.84113102 {
    typolink {
        parameter.data = TSFE:id
        returnLast = url
        forceAbsoluteUrl = 1
    }
    wrap =<meta property="og:url" content="|">
}

#[globalVar = GP:tx_news_pi1|news > 0]
[request.getQueryParams()['tx_news_pi1'] && request.getQueryParams()['tx_news_pi1']['news']> 0]
    page.headerData.84113102 {
        typolink {
            addQueryString = 1
            addQueryString.method = GET
            addQueryString.exclude = cHash,backPid,sword_list,tx_news_pi1[action],no_cache
        }
    }

    # Remove metaseo og-tags and use Ext:news tags instead
    plugin.metaseo.metaTags.opengraph >
[global]
