Here's my plunker. If you click on the profile
link and look at the generated state change list:
stateChanges = [
" -> home",
"home -> profile",
"home -> signIn",
"signIn -> signIn"
]
you can see there's an unexpected extra state change "signIn -> signIn"
.
I've done some debugging and it seems it's ui-router's reaction to $locationChangeSuccess
via the afterLocationChange
function. But I'm not sure if that's a bug in ui-router or a result of how I configured ui-router and how I manage redirection. If the behavior is my fault, how do I fix it?
I would really appreciate the help, as the double state change causes my query parameters to be double URL encoded: /profile -> %2Fprofile -> %252Fprofile
instead of just the first two.
It seems this is something that came with 0.2.15. I tried using older releases and even 0.2.14 works fine. After some investigation I found the problem came with commit 48aeaff
. If I uncomment the code that was commented out by that commit, this issue goes away even on 0.2.15. For now I will use this modified version of the 0.2.15.
I also found that there's an issue in ui-router's issue tracker for this #1573
.
Trying to understand the behaviour and difference between: moment.utc(date) and moment(date).utc() Using '2018-05-31' as a param: moment.utc('2018-05-31').format() will give: 2018-05-31T00:00:...
Trying to understand the behaviour and difference between: moment.utc(date) and moment(date).utc() Using '2018-05-31' as a param: moment.utc('2018-05-31').format() will give: 2018-05-31T00:00:...
I am working on a React app that is 'remote controlled' and am trying to connect the app's tab navigation via Pusher. I am using react-router-dom and have set up my connection to Pusher and the ...
I am working on a React app that is 'remote controlled' and am trying to connect the app's tab navigation via Pusher. I am using react-router-dom and have set up my connection to Pusher and the ...
I have a temperature scale (green up to some extent, then yellow and then red) in the background and need a temperature "bar" of sorts over it which: Refreshes after a fixed interval of time, in the ...
I have a temperature scale (green up to some extent, then yellow and then red) in the background and need a temperature "bar" of sorts over it which: Refreshes after a fixed interval of time, in the ...
When writing a gallery faced with a problem. There is pagination for the gallery. Each page should be different picture. As with the aid of AJAX upload new content to the gallery when switching pages? ...
When writing a gallery faced with a problem. There is pagination for the gallery. Each page should be different picture. As with the aid of AJAX upload new content to the gallery when switching pages? ...