concrete/src/Routing/Redirect.php
public static function page(Page $c, $code = 302, $headers = array())
    {
        if ($c->getCollectionPath()) {
            $url = Core::make('helper/navigation')->getLinkToCollection($c, true);
        } else {
            $url = \URL::to($c);
        }
        $r = static::createRedirectResponse((string) $url, $code, $headers);

        return $r;
    }
public static function page(Page $c, $code = 302, $headers = array())
    {
        if ($c->getCollectionPath()) {
            $url = Core::make('helper/navigation')->getLinkToCollection($c, true);
        } else {
            $url = \URL::to($c);
        }
        $r = static::createRedirectResponse((string) $url, $code, $headers);

        return $r;
    }
public static function page ( Page $ c , $ code = 302 , $ headers = array ( ) ) { if ( $ c -> getCollectionPath ( ) ) { $ url = Core :: make ( 'helper/navigation' ) -> getLinkToCollection ( $ c , true ) ; } else { $ url = \ URL :: to ( $ c ) ; } $ r = static :: createRedirectResponse ( ( string ) $ url , $ code , $ headers ) ; return $ r ; }
Redirect to a page.
Redirect to a page .