controllers/FrontController.php
private function getCanonicalUrl(Request $request)
    {
        $uri = $request->getUri();
        $return = 'https://alltubedownload.net/';

        $path = $uri->getPath();
        if ($path != '/') {
            $return .= $path;
        }

        $query = $uri->getQuery();
        if (!empty($query)) {
            $return .= '?'.$query;
        }

        return $return;
    }
private function getCanonicalUrl(Request $request)
    {
        $uri = $request->getUri();
        $return = 'https://alltubedownload.net/';

        $path = $uri->getPath();
        if ($path != '/') {
            $return .= $path;
        }

        $query = $uri->getQuery();
        if (!empty($query)) {
            $return .= '?'.$query;
        }

        return $return;
    }
private function getCanonicalUrl ( Request $ request ) { $ uri = $ request -> getUri ( ) ; $ return = 'https://alltubedownload.net/' ; $ path = $ uri -> getPath ( ) ; if ( $ path != '/' ) { $ return .= $ path ; } $ query = $ uri -> getQuery ( ) ; if ( ! empty ( $ query ) ) { $ return .= '?' . $ query ; } return $ return ; }
Generate the canonical URL of the current page.

@param Request $request PSR-7 Request

@return string URL
Generate the canonical URL of the current page .