Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RouterInfo reports empty string as zero-th subdomain for domains with no subdomain(s) #1

Open
T99 opened this issue Jun 29, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@T99
Copy link
Owner

T99 commented Jun 29, 2022

When using this domain:

localhost:1711

The following RoutingInfo is generated:

{
	"url": "http://localhost:1711/",
	"topLevelDomain": "localhost",
	"domainName": "localhost",
	"subdomainComponents": [""],
	"subdomainComponentsIndex": 0,
	"pathComponents": [],
	"pathComponentsIndex": 0,
	"doesHaveTrailingSlash": true,
	"routingParameters": {}
}

...which incorrectly lists a single subdomain - the empty string.

@T99 T99 added the bug Something isn't working label Jun 29, 2022
@T99 T99 self-assigned this Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant