*/
public function getLink($controller = null, array $parameters = array(), $url = '') {
$abbreviation = 'wcf';
+ $anchor = '';
$isRaw = false;
if (isset($parameters['application'])) {
$abbreviation = $parameters['application'];
unset($parameters['isRaw']);
}
+ // remove anchor before parsing
+ if (($pos = strpos($url, '#')) !== false) {
+ $anchor = substr($url, $pos);
+ $url = substr($url, 0, $pos);
+ }
+
// build route
if ($controller !== null) {
// handle object
$url = $application->domainName . $application->domainPath . $url;
}
+ // append previously removed anchor
+ $url .= $anchor;
+
return $url;
}
}