I am working on a typo3 extension and I want to generate an url from the page id. Currently I create the url by appending `index.php?id=ID` to `$GLOBALS['TSFE']->baseURL`. 

Is there any other way to create a readable url from the page id, and if yes, how it can be done?