Skip to content

fix: accept the test dotNS TLD in product identifiers - #465

Merged
valentinfernandez1 merged 1 commit into
mainfrom
fix/dotns-test-tld
Aug 20, 2026
Merged

fix: accept the test dotNS TLD in product identifiers#465
valentinfernandez1 merged 1 commit into
mainfrom
fix/dotns-test-tld

Conversation

@filvecchiato

@filvecchiato filvecchiato commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

DOTNS_TLDS covers dot, paseo and test, so a .test name is an accepted
product identifier and classifies as dotNS navigation.

Each network declares its own dotNS TLD, and PreviewNet and Gaming Net register
under .test (brevity-chain's DotnsConfig::gamingnet() sets
browse_domain: Some("browse.test")). With test missing from the set,
parse_navigate("browse.test") returns External, so brevity-ffi's
classify_host_navigation routes the name to OpenExternalUrl and the product
opens in a browser instead of loading as a product SPA.
normalize_product_identifier rejects the same name.

Downstream identity is unaffected: hosts canonicalize the per-network spelling
to the .dot identity before it reaches a cache, archive or derivation key, the
same way they already handle .paseo names since #369.

Tests: product_context_validation_cases ("Browse.TEST"browse.test) and
parse_navigate_cases (bare, mixed-case-with-path, polkadot://; port and
userinfo forms stay rejected). Both fail on main. example.com and
dotli.dotty remain rejected; mytestapp.dot.li remains external.

Follow-up worth considering: taking the TLD set from host configuration instead
of a compile-time constant, so it tracks the network rather than core releases.

Networks that declare `test` as their dotNS TLD register product names
under it, so `.test` names have to clear product-identifier validation
and classify as dotNS navigation rather than falling through to external.
@filvecchiato
filvecchiato requested review from a team and leonardocustodio August 20, 2026 12:44
@valentinfernandez1
valentinfernandez1 added this pull request to the merge queue Aug 20, 2026
Merged via the queue into main with commit f277f39 Aug 20, 2026
19 checks passed
@valentinfernandez1
valentinfernandez1 deleted the fix/dotns-test-tld branch August 20, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants