Skip to content
Snippets Groups Projects
Verified Commit 2fa8691e authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Add pagebrowser parameter to canonical if current page > first page

parent 85d0e99e
No related branches found
No related tags found
No related merge requests found
......@@ -71,8 +71,6 @@ use TYPO3\CMS\Extbase\Mvc\Exception\NoSuchArgumentException;
use TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException;
use TYPO3\CMS\Extbase\Property\Exception\TypeConverterException;
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
use TYPO3\CMS\Extbase\Validation\Validator\ConjunctionValidator;
use TYPO3\CMS\Extbase\Validation\Validator\GenericObjectValidator;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
use TYPO3\CMS\Frontend\Controller\ErrorController;
use TYPO3\CMS\Frontend\Page\PageAccessFailureReasons;
......@@ -260,6 +258,17 @@ class JoblistController extends ActionController {
)['persistence']['storagePid']
);
if ($currentPageBrowserPage > 0 && ExtensionManagementUtility::isLoaded('sg_seo')) {
$headTagService = GeneralUtility::makeInstance(
HeadTagService::class,
FALSE,
'',
'',
'&tx_sgjobs_pagebrowser[currentPage]=' . $currentPageBrowserPage
);
$headTagService->execute();
}
$this->assignFilterValues($storagePids, $filters);
$this->view->assign('recordPageIds', $storagePids);
$jobLimit = (int) $this->settings['jobLimit'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment