public function getCanonicalAttribute()
    {
        if ($canonical = $this->canonicalUrl) {
            return $canonical;
        }

        if (method_exists($this, 'baseCanonical')) {
            return $this->baseCanonical();
        }

        return url()->current();
    }