In my app, I'd like to have a separate view/controller for a child state with just a query param. Something along the lines of
.state('article') {
url: '/articles/:articleID',
controller: 'articleController'
}
.state('article.raw') {
url: '?raw',
controller: 'rawArticleController'
}
This works fine with the latest version of UI-Router, except that the query param ?raw doesn't show up in the URI. E.g, if I go to the article.raw state with {articleID: 'Hello'}, I still see this
http://app/articles/Hello
Instead of this
http://app/articles/Hello?raw
I've searched around and found these related issues but they don't solve my problem. Any insight would be greatly appreciated!