protected function jumpToOrReload($intId, $strParams = null, $strForceLang = null)
{
if ($strForceLang !== null) {
@trigger_error('Using Frontend::jumpToOrReload() with $strForceLang has been deprecated and will no longer work in Contao 5.0.', E_USER_DEPRECATED);
}
/** @var PageModel $objPage */
global $objPage;
// Always redirect if there are additional arguments (see #5734)
$blnForceRedirect = $strParams !== null || $strForceLang !== null;
if (is_array($intId)) {
if ($intId['id'] != '') {
if ($intId['id'] != $objPage->id || $blnForceRedirect) {
$this->redirect($this->generateFrontendUrl($intId, $strParams, $strForceLang, true));
}
}
} elseif ($intId > 0) {
if ($intId != $objPage->id || $blnForceRedirect) {
if (($objNextPage = \PageModel::findPublishedById($intId)) !== null) {
$this->redirect($objNextPage->getFrontendUrl($strParams, $strForceLang));
}
}
}
$this->reload();
}