Skip to content

Hash bang routing with root path ("/") #739

@TheSharpieOne

Description

@TheSharpieOne

In the sample states.js: // Use a url of "/" to set a states as the "index".

When entering the site at the root/index/home level and using hashbangs, the $location.path() will return "" instead of "/". When a state's url option is "/" to match the root/index/home, it will not match ("" != "/").

If the $location.path() is an empty string ("") it should match the root/index/home state ("/")

Here is the $location when entering the root/index/home of a site at the time the match is performed.
angular-hash-problem

*The manual hash was me going directly to the url with the hash already in place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions