public function shortcodeUrl(Event $event, array $atts, $content, $tag)
    {
        try {
            $url = Router::url($content, true);
        } catch (\Exception $e) {
            $url = '';
        }

        return $url;
    }
public function shortcodeUrl(Event $event, array $atts, $content, $tag)
    {
        try {
            $url = Router::url($content, true);
        } catch (\Exception $e) {
            $url = '';
        }

        return $url;
    }
public function shortcodeUrl ( Event $ event , array $ atts , $ content , $ tag ) { try { $ url = Router :: url ( $ content , true ) ; } catch ( \ Exception $ e ) { $ url = '' ; } return $ url ; }
Implements the "url" shortcode.

{url}/some/url/on/my/site{/url}

@param \Cake\Event\Event $event The event that was fired
@param array $atts An associative array of attributes, or an empty string if
no attributes are given
@param string $content The enclosed content (if the shortcode is used in its
enclosing form)
@param string $tag The shortcode tag
@return string
Implements the url shortcode .