Open arthur-kv opened 9 years ago
I'm facing something similar where the property is appearing in $state.params and making it difficult to determine if there are no parameters currently on a given state.
@banzai-samurai what version of ui-router are you using?
Note: this bug is related to a reload
feature I added to ui-router-extras for issue #139 which allows you to specify {reload: state.name}
on a transition to reload state.name
and all children. In ui-router 0.2.13 and up, the query parameter is considered "non-url" is does not affect the URL.
I'm afraid that I won't be fixing this bug until I entirely remove the capability introduced for #139. I will be removing it eventually, because in 0.2.15, ui-router got native "reload this state and its children" support. In the meantime, upgrade to 0.2.13+ and the behavior should change.
@dubilla likewise, what versions of ui-router and extras are you using? How is the "$$uirouterextrasreload" param affecting you? What are you doing with the params object that makes this difficult for you?
i'm using 0.2.12-pre1 version of ui-router
@banzai-samurai that's an odd version to be using! why not update?
+1
When I reload my ui-router's state like this:
This is my login state:
I get a url parameter $$uirouterextrasreload
http://localhost:3000/#/login?$$uirouterextrasreload=0.40401903772726655
I included ui-router-extras like this:
Maybe I'm mising somethig?