You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found an issue whereby when a user enters the site with an anchor link in the URL domain.com/app/page#section The anchor part #section is appended to all URLs being output by ui-sref e.g. domain.com/app/home#section & domain.com/app/contact#section
By stepping through the library code, I found that the root state {state: ''} is being given the param:
params: {
'#': Param(...)
}
And then in stateService.href() that param is inherited all the way down my chain of states
I'm not sure if this is a bug, something is misconfigured, or an issue with the app I'm working with but I have found that if I change the default value inherit: true to false this issue goes away.
I've found an issue whereby when a user enters the site with an anchor link in the URL
domain.com/app/page#section
The anchor part#section
is appended to all URLs being output byui-sref
e.g.domain.com/app/home#section
&domain.com/app/contact#section
By stepping through the library code, I found that the root state
{state: ''}
is being given the param:And then in stateService.href() that param is inherited all the way down my chain of states
I'm not sure if this is a bug, something is misconfigured, or an issue with the app I'm working with but I have found that if I change the default value
inherit: true
tofalse
this issue goes away.(any pointers appreciated)
The text was updated successfully, but these errors were encountered: