$url = $this->filter('url', 'str');
$url = substr($url, 0, 4) == 'http' ? $url : 'https://'.$url;
$formatter = \XF::app()->stringFormatter();
$linkInfo = $formatter->getLinkClassTarget($url);
if ($linkInfo['local'])
{
$linkParse = parse_url($url);
$routeMatch = $this->router()->routeToController($linkParse['path']);
$params = $routeMatch->getParameterBag();
\XF::dump($params);
}