Skip to content

Single URL app - $apply() adds "/#/" to the URL #155

Closed
@bbshopadmin

Description

@bbshopadmin

Hi,

i use UI-Router for a app without any URLs/deeplinking, only pure states. It' works fine till i call $apply() to update scope vars inside a controller. Somehow $apply adds "/#/" to the URL. Views without $apply() working fine.

Currently it behaves like that:

state A = "localhost:8888"
state B = "localhost:8888/#/" <- $apply() in the controller

The sole exception i declared a URL is in my root state
url: "",

Any ideas?

Edit: above with angular 1.1.5 (hashbang mode)
if i turn on html5mode "/#/" won't be added anymore.. but i don't want html5 mode due to compatibility issues

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