Kevin Rodriguez
Kevin Rodriguez

Reputation: 1

In the context of a mobile app deep link. What is the authority of the URI referred to as?

I am currently learning about the differences between a URI and a URL, and I believe I have a good understanding of the distinction. However, I am struggling to understand the authority portion in the context of a custom URI scheme deep link.

For instance: stackoverflow://home

What exactly is the //home portion referred to as?

From my understanding, the authority typically consists of three parts: user:info@host:port. In this case, it doesn't seem to involve user:info or :port, so I assume we would classify it as the host. However, since a host is generally defined as a domain name or IP address, the home portion in this custom URI scheme does not fit that definition.

How should this part be accurately referred to?

Additionally, are there any official resources or documentation that can clarify this?

I've tried asking AI and googling but no straight forward answers to my question specifically.

Upvotes: 0

Views: 11

Answers (1)

Evert
Evert

Reputation: 99571

I believe these deep links are incorrectly structured. Technically given the generic URI syntax, 'home' would be considered the authority, but it functions more like a path here. Similarly, 'stackoverflow' is the scheme, but it feels more like the authority.

A more correct URI structure would probably have been something like:

app-link://stackoverflow/home

(although there's still issues using a global one-word namespace).

Or at the very least:

stackoverflow:home

The above syntax skips the authority part and just specifies the path.

Upvotes: 0

Related Questions