Skip to content

The documentation regarding the domain options is inaccurate #14719

@dande-sun

Description

@dande-sun

Astro Info

Astro                    v5.15.3
Vite                     v6.4.1
Node                     v22.12.0
System                   Linux (x64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/node (v9.5.0)
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

https://docs.astro.build/en/guides/internationalization/#domains
Through testing, I discovered that:
The file /fr/about.astro will create the URL https://fr.example.com/fr/about.
The file /es/about.astro will create the URL https://example.es/es/about.
The file /ja/about.astro will create the URL https://example.com/ja/about.
The file /en/about.astro will create the URL https://example.com/en/about.
This does not match the documentation.
Image

What's the expected result?

The documentation should accurately reflect the Astro's behavior.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-p4hvmkdh?file=src%2Fpages%2Fen%2Findex.astro

Participation

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions