I get a jumpTo page set in a module back as its id number....
To convert this to a url I can....
but what if the website has not elected to use $GLOBALS['TL_CONFIG']['urlSuffix'] ??Code:$objPage = $this->Database->prepare("SELECT id, alias FROM tl_page WHERE id=?") ->limit(1) ->execute($objConfig->jumpTo); if ($objPage->numRows) { $bookingFormPage = $objPage->alias . $GLOBALS['TL_CONFIG']['urlSuffix']; } $this->redirect($bookingFormPage);
Is there an easier way to convert a page id to its url?
Bookmarks