Closed soelinn closed 4 years ago
I have this same issue. It seems to be related to a route with an empty URL i.e. "/"
This is my exact problem on Stack Overflow. ADAL forces HTML5 and hash prefix. None of the suggested solutions works for me. This is still an issue
I am running AngularJS v1.5.6
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This does not mean that the issue is invalid. Valid issues may be reopened.
Thank you for your contributions.
This issue tracker is for Bug Reports and Feature Requests only.
Please direct requests for help to StackOverflow. See http://bit.ly/UIR-SOF for details.
This is a (check one box):
My version of UI-Router is:
1.0.20
Bug Report
Current Behavior:
$stateParams
does not contain properties for Query String Parameters for AngularJS version1.6.x
and above. It works correctly for AngularJS1.5.11
and lower. The URL gets stuck on http://127.0.0.1:4200/#!#%2F%3Fid=1234Expected Behavior:
$stateParams
contains properties for Query String Parameters for AngularJS version1.6.x
and above. The ui-router routes successfully to to http://127.0.0.1:4200/#/foobar?id=1234How-To Reproduce the Issue
We cannot use Plunker to test this so I have provided the instructions and the HTML code below with the bug.
(1) Save the HTML code below as
index.html
in a folder (e.g.,ui-router-bug
). (2) Change directory tocd ui-router-bug
. (3) Executenpm install -g live-server
. (4) Serve the folderlive-server --port 4200 ./
. (5) Navigate tohttp://127.0.0.1:4200/#/?id=1234
FooBarController
because the$urlRouterProvider.otherwise( ... )
will redirect to theindex
route.AppController
.IMPORTANT
Simply change to AngularJS
1.6.10
in the HTML by swapping the included Google CDN URLs, the ui-router is not redirecting to theFooBarController
anymore.General Query
Please direct general implementation questions to StackOverflow: http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router
Please review the Sample Application which highlights common approaches: https://github.com/ui-router/sample-app-angularjs
[ ] I have already asked my question on StackOverflow and nobody could answer the question
[X] I have already reviewed the sample application for examples of common approaches
[X] I believe my question can only be answered by the UI-Router maintainers
Related Issue
I have noticed another issue reported here. https://github.com/angular-ui/ui-router/issues/3744
The issue reporter, Andrew Nichols, is reporting a different issue. However, I believe there is a strong correlation between these two issues.