src/Models/Page.php
public function uri($locale = null)
    {
        $locale = $locale ?: config('app.locale');
        $uri = $this->translate('uri', $locale);
        if (
            config('app.fallback_locale') != $locale ||
            config('typicms.main_locale_in_url')
        ) {
            $uri = $uri ? $locale.'/'.$uri : $locale;
        }

        return $uri ?: '/';
    }
public function uri($locale = null)
    {
        $locale = $locale ?: config('app.locale');
        $uri = $this->translate('uri', $locale);
        if (
            config('app.fallback_locale') != $locale ||
            config('typicms.main_locale_in_url')
        ) {
            $uri = $uri ? $locale.'/'.$uri : $locale;
        }

        return $uri ?: '/';
    }
public function uri ( $ locale = null ) { $ locale = $ locale ? : config ( 'app.locale' ) ; $ uri = $ this -> translate ( 'uri' , $ locale ) ; if ( config ( 'app.fallback_locale' ) != $ locale || config ( 'typicms.main_locale_in_url' ) ) { $ uri = $ uri ? $ locale . '/' . $ uri : $ locale ; } return $ uri ? : '/' ; }
Get front office uri.

@param string $locale

@return string
Get front office uri .