src/Mvc/Controller/Plugin/Back.php
public function url($default = 'home')
    {
        $url = $this->getController()->plugin('url');
        $route = $this->getSession()->route;
        if (null === $route) {
            return $url->fromRoute($default);
        }
        return $url->fromRoute($route->getMatchedRouteName(), 
            $route->getParams());
    }
public function url($default = 'home')
    {
        $url = $this->getController()->plugin('url');
        $route = $this->getSession()->route;
        if (null === $route) {
            return $url->fromRoute($default);
        }
        return $url->fromRoute($route->getMatchedRouteName(), 
            $route->getParams());
    }
public function url ( $ default = 'home' ) { $ url = $ this -> getController ( ) -> plugin ( 'url' ) ; $ route = $ this -> getSession ( ) -> route ; if ( null === $ route ) { return $ url -> fromRoute ( $ default ) ; } return $ url -> fromRoute ( $ route -> getMatchedRouteName ( ) , $ route -> getParams ( ) ) ; }
Get last route URL

@param string $default
Get last route URL