You can also tap into Contao's "generateFrontendUrl" hook to add this --
/system/modules/make-up-a-folder-name/config/config.php:
Code:
<?php $GLOBALS['TL_HOOKS']['generateFrontendUrl'][] = array('CustomUrls', 'generateCustomUrl'); ?>
/system/modules/same-folder-as-above/CustomUrls.php:
Code:
<?php
class CustomUrls
{
public function generateCustomUrl($arrRow, $strParams, $strUrl)
{
return $strUrl . '#begin';
}
}
?>
And then "#begin" will automatically be appended to any URL generated by the system.
Bookmarks