Skip to content

Commit b973dad

Browse files
committed
fix(uiSref): should inherit params by default
1 parent 9cf764e commit b973dad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/stateDirectives.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ function $StateRefDirective($state, $timeout) {
8989
var isForm = element[0].nodeName === "FORM";
9090
var attr = isForm ? "action" : "href", nav = true;
9191

92-
var options = {
93-
relative: base
94-
};
92+
var options = { relative: base, inherit: true };
9593
var optionsOverride = scope.$eval(attrs.uiSrefOpts) || {};
94+
9695
angular.forEach(allowedOptions, function(option) {
9796
if (option in optionsOverride) {
9897
options[option] = optionsOverride[option];

0 commit comments

Comments
 (0)