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.path should not contain / prefix #234

Closed
@IgorMinar

Description

@IgorMinar

why on earth does $location.path contain the / prefix?

$locaiton.update('http://foo:23/bar');
$location.path = 'newPath';
scope.eval();
expect($location.href).toBe('http://foo:23/newPath');

this fails because the href is http://foo:23newPath

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions