angularjs - Why does the URL in UI-Router keep resetting? -


i'm using angularjs framework of web application, , ui-router nested states. while i'm changing states in ui-router, long i'm changing between sibling states, url gets updated correctly, when change parent state, url becomes:

http://{domain}:{port}/#/

what causing it?

this won't common problem others, i'll post solved issue in hopes no 1 gets stuck long did.

the common url address states (ui-router concept) in application

xttp://domain.com/#/{siteid}/state1/state1a (where {siteid} variable integer)

the problem here when changing between states, siteid cannot passed along top level. means when link takes user state 1a state 2a, siteid not passed along, , routing fail.

i solved issue putting siteid in cookie rather in url path variable. common url address after solving issue became:

xttp://domain.com/#/state1/state1a

simon s.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -