Skip to content

feat(data-access): extend DOMAIN_PATTERN to support subpath domains (LLMO-4187)#1593

Open
Kanishkavijay39 wants to merge 1 commit intomainfrom
feat/llmo-4187-subpath-domain-support
Open

feat(data-access): extend DOMAIN_PATTERN to support subpath domains (LLMO-4187)#1593
Kanishkavijay39 wants to merge 1 commit intomainfrom
feat/llmo-4187-subpath-domain-support

Conversation

@Kanishkavijay39
Copy link
Copy Markdown
Contributor

@Kanishkavijay39 Kanishkavijay39 commented May 7, 2026

LLMO-4187 — Subpath URL support for ASO PLG & LLMO onboarding

Problem

Domain validation in PlgOnboarding used a regex that only accepted plain
hostnames (e.g. nba.com). Subpath domains like nba.com/kings were
rejected, blocking PLG and LLMO customers from self-onboarding subpath sites.

Changes

plg-onboarding.model.js

  • Updated DOMAIN_PATTERN to allow optional path segments after the hostname
    (e.g. nba.com/kings, nba.com/us/kings)
  • Added IPv4 negative lookahead so addresses like 127.0.0.1 are rejected
  • Simplified label sub-pattern to stay within SonarQube regex complexity limit (20)

plg-onboarding.schema.js

  • Fixed the domain attribute length check to measure the hostname only
    (value.split('/')[0].length <= 253) so the path segment doesn't count
    against the 253-char DNS limit

Valid after this change

Value Before After
nba.com
www.nba.com
nba.com/kings
nba.com/us/kings
https://nba.com
127.0.0.1 ✅ (bug)
nba.com?q=1
nba.com#top

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

…on (LLMO-4187)

Update DOMAIN_PATTERN to accept nba.com/kings-style subpath domains
alongside plain hostnames, and add IPv4 rejection via negative lookahead.
Schema length check now applies to the hostname only so subpaths don't
count against the 253-char DNS limit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Kanishkavijay39 Kanishkavijay39 changed the title feat(data-access): support subpath domains in PLG onboarding validati… feat(data-access): extend DOMAIN_PATTERN to support subpath domains (LLMO-4187) May 7, 2026
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.

1 participant