Namegarage

Canonical links on internationalized hosts

Dev blog#domains#markdown#web

Our homepage and Markdown articles send an HTTP Link header pointing readers and crawlers to the canonical HTML page. When the configured site hostname contained Unicode, the middleware could fail before sending the response because Fetch header values cannot contain arbitrary Unicode characters.

The site builder now uses the same URL serialization for those headers that it uses for the catalog manual. An internationalized hostname becomes its ASCII form, while its configured port and the intended page path are retained. The header still points to the configured site when a request arrives through a preview URL.

Add as preferred source
Hacker News X LinkedIn Email

Using this button loads Google’s service and allows its usage measurement. Privacy policy.

Get new blog posts by email

Comments

Comments are reviewed before publication. The Author badge marks replies from the author.

Read approved comments on the discussion page.

    Open the discussion page

    Leave a comment

    Your account name, sign-in provider, and comment become public after review. Your email stays private. See the blog comments privacy notice and Privacy Policy.

    Sign in to leave a comment.