def url(self) -> str:
        """The URL of the page relative to the MkDocs `site_dir`."""
        url = self.file.url
        if url in ('.', './'):
            return ''
        return url
The URL of the page relative to the MkDocs `site_dir`.
mkdocs/structure/pages.py