Skip to content

getRelativeLocaleUrl usage make css leak in non docs pages #3787

@riderx

Description

@riderx

What version of starlight are you using?

0.38.2

What version of astro are you using?

6.1.0

What package manager are you using?

npm

What operating system are you using?

Mac

What browser are you using?

Chrome

Describe the Bug

use import { getRelativeLocaleUrl } from 'astro:i18n'
const docsHref = getRelativeLocaleUrl('en', 'second_page') in a header component used by main layout make the starlight CSS leak in all pages.

Link to Minimal Reproducible Example

https://github.com/riderx/astro-reproduction-css-issue

Participation

  • I am willing to submit a pull request for this issue.

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