Skip to content

$state.href() does not include path #1208

@lukehorvat

Description

@lukehorvat

My Angular app resides at a path on my server, /app, not the root / path. Calling $state.href does not seem to include the path name in its return value.

Example:

$state.href("doggy", { style: "raw" }, { absolute: true });

Results in:

http://localhost:8080/#/doggy?style=raw 

Whereas really it should be:

http://localhost:8080/app/#/doggy?style=raw 

Am I missing something obvious here or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions