Skip to content

Commit

Permalink
Revert "Fixed og:url always returning index.php?id=... ."
Browse files Browse the repository at this point in the history
This reverts commit 42c1719.
  • Loading branch information
jonathanheilmann committed Nov 8, 2016
1 parent 42c1719 commit 8feaae9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Classes/Service/OgRendererService.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,7 @@ public function main($content, $conf)
$og['image'] = $fileObjects;

// Get url
$og['url'] = GeneralUtility::getIndpEnv('TYPO3_SITE_URL');
$cObject = GeneralUtility::makeInstance('tslib_cObj');
$configurations['additionalParams'] = "&L=".(int)GeneralUtility::_GP('L');
$configurations['returnLast'] = 'url'; // get it as URL
$configurations['parameter'] = $GLOBALS['TSFE']->id;
$og['url'] .= htmlspecialchars($cObject->typolink(NULL, $configurations));






$og['url'] = htmlentities(GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL'));

// Get site_name
$og['site_name'] = htmlspecialchars(!empty($conf['sitename']) ?
Expand Down

0 comments on commit 8feaae9

Please sign in to comment.