I have those 2 states for my page :
$stateProvider
.state("page", {
url: "/:pageId/:pageType",
template: pageTemplate,
controller: "contentCtrl",
resolve: {
...
}
},
params: {reload: true}
})
and
.state("schedule", {
url: "/Schedule/:scheduleId/:pageId/:pageType",
template: pageTemplate,
controller: "contentCtrl",
resolve: {
...
}
},
params: {
pageId: { squash: true, value: null},
pageType: { squash: true, value: null},
reload:true
}
})
SOMETIMES, for link's like this :
http://localhost:8182/index.html#/Schedule/691d6981b8dd47e0a158d67cb02b1fee/
the 'page' state is loading instead of the 'schedule' one.
What should I do to fix this?
PS: I'm using AngularJS v1.7.6 and ui-router v0.2.18