Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$location getters need better documentation #9754

Closed
@eheikes

Description

@eheikes

Am I missing something, or are the return values for some $location getters, specifically protocol() and host(), unclear?

The $location documentation seems vague. The code comments for urlResolve(), which $location uses, says that the protocol includes the colon and the host includes the port, but this is demonstrably untrue.

Another source of confusion is the fact that window.location.protocol includes the colon and window.location.host includes the port as well.

Does $location and urlResolve maybe need improved docs?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions