public function routeCanonical($var = null)
    {
        if ($var !== null) {
            $this->routes['canonical'] = $var;
        }

        if (!empty($this->routes) && isset($this->routes['canonical'])) {
            return $this->routes['canonical'];
        }

        return $this->route();
    }
public function routeCanonical($var = null)
    {
        if ($var !== null) {
            $this->routes['canonical'] = $var;
        }

        if (!empty($this->routes) && isset($this->routes['canonical'])) {
            return $this->routes['canonical'];
        }

        return $this->route();
    }
public function routeCanonical ( $ var = null ) { if ( $ var !== null ) { $ this -> routes [ 'canonical' ] = $ var ; } if ( ! empty ( $ this -> routes ) && isset ( $ this -> routes [ 'canonical' ] ) ) { return $ this -> routes [ 'canonical' ] ; } return $ this -> route ( ) ; }
Gets the canonical route for this page if its set. If provided it will use
that value, else if it's `true` it will use the default route.

@param null $var

@return bool|string
Gets the canonical route for this page if its set . If provided it will use that value else if it s true it will use the default route .