Skip to content

set html_tag block is missing data-content_root (sphinx 7.2+ basic theme change) #1498

@kay-kim

Description

@kay-kim

Sphinx basic theme seems to now use data-content_root instead of DOCUMENTATION_OPTIONS.URL_ROOT which is set in the html element.
See sphinx-doc/sphinx@8e730ae for the change.

As such, the sphinx 7.2+ search results for dirhtml builds have resulting urls that have search/undefined in them (which makes them 404 when a user clicks on the resulting links.

Maybe modifying https://github.com/pydata/pydata-sphinx-theme/blob/185a37aa36820f77bffa4c87a772092e9e7cc380/src/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html#L4C1-L6C13 to include data-content_root="../" might fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions