opf/openproject — pull request #1840 by manwithtwowatches (2014-09-01 12:01:07+00:00)
Title: Force ui router to inherit params and set version to version 0.2.11

https://www.openproject.org/work_packages/15151

This is really strange and I'm still looking for an explanation but here is a quick fix which I hope will do the trick in the main time.

Looking in angular-ui-router.js:2836 I see:

$state.href = function href(stateOrName, params, options) {
options = extend({
lossy: true,
inherit: true,
absolute: false,
relative: $state.$current
}, options || {});

...and then looking on the QA server in application js I see the definition is slightly different:

$state.href = function href(stateOrName, params, options) {
options = extend({
lossy: true,
inherit: false, <------------ hmm?!
absolute: false,
relative: $state.$current
}, options || {});

They are both version 0.2.11. I have no idea how this could be occurring. In the mean time I am forcing it to inherit.