classes/Models/RedirectRule.php
public function pathAndQuery()
    {
        $query = Request::getQueryString();
        $path = ltrim(Request::path(), '/'); // ltrim fixes homepage
        return $query ? $path.'?'.$query : $path;
    }
public function pathAndQuery()
    {
        $query = Request::getQueryString();
        $path = ltrim(Request::path(), '/'); // ltrim fixes homepage
        return $query ? $path.'?'.$query : $path;
    }
public function pathAndQuery ( ) { $ query = Request :: getQueryString ( ) ; $ path = ltrim ( Request :: path ( ) , '/' ) ; // ltrim fixes homepage return $ query ? $ path . '?' . $ query : $ path ; }
Get the path and query from the request

@return string
Get the path and query from the request