angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

Url params with '=' #3764

Closed memee closed 5 years ago

memee commented 5 years ago

My version of UI-Router is: 1.0.22

Bug Report

Current Behavior:

I have a following state setup:

$stateProvider.state('app.report', {
  url: '/reports/{id}?filter',
  [...]
})
  1. When I use $state.go('app.report', { id: 'xxx', { filter: 'accountId=xxx' } }); (Note the equals char in filter)
  2. I'm redirected to url localhost:7070/#/reports/xxx?filter=accountId%3Dxxx
  3. State opens with no problems
  4. I hit F5 and reload the page
  5. Application hangs in some kind of unresolved state with no errors in console

Expected Behavior:

Application behaves exactly the same whether I use $state.go or open url directly

memee commented 5 years ago

Terribly sorry. It was part of my code that used $urlRouterProvider.rule and decoded url.