Xiaohongshu iOS shares use .cn links that silently break apps expecting .com
Xiaohongshu share links generated by its iOS app use the domain xhslink.cn, while older and desktop shares use xhslink.com — both resolve to the same content but behave differently in URL-routing systems. A developer at link-digest service LinkDigest discovered the discrepancy on September 8–10, 2026, after a new user's shared post was mishandled without any error being raised. Because the .cn domain was absent from the platform's URL-matching regex, links fell through to a generic HTML extractor that returned partial data — missing images, author details, post dates, and video transcripts — while still responding with HTTP 200. The silent failure meant users received degraded output with no indication anything was wrong, causing at least one user to quietly abandon the service. The fix requires updating the domain pattern to match both xhslink.com and xhslink.cn, and ensuring short-link expansion logic also includes the .cn variant.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in