Skip to content

Commit db47f98

Browse files
committed
feat(common_api): Adds the posibility to override the cannonical url
for nested resources.
1 parent db4e63b commit db47f98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/module/api/common-api.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ RMModule.factory('RMCommonApi', ['$http', 'RMFastQ', '$log', function($http, $q,
5151
if(_for) {
5252
_for = '$' + _for + 'UrlFor';
5353
if(this.$scope[_for]) return this.$scope[_for](this);
54+
} else if(this.$scope.$cannonicalUrlFor) {
55+
return this.$scope.$cannonicalUrlFor(this);
5456
}
5557

5658
return this.$scope.$urlFor(this);

0 commit comments

Comments
 (0)