diff options
Diffstat (limited to 'horizon/static/framework/widgets/details/routed-details-view.controller.js')
-rw-r--r-- | horizon/static/framework/widgets/details/routed-details-view.controller.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/horizon/static/framework/widgets/details/routed-details-view.controller.js b/horizon/static/framework/widgets/details/routed-details-view.controller.js index 739dc5d7e..cea3e4102 100644 --- a/horizon/static/framework/widgets/details/routed-details-view.controller.js +++ b/horizon/static/framework/widgets/details/routed-details-view.controller.js @@ -28,7 +28,8 @@ 'horizon.framework.widgets.modal-wait-spinner.service', '$location', '$q', - '$routeParams' + '$routeParams', + '$window' ]; function controller( @@ -39,7 +40,8 @@ spinnerService, $location, $q, - $routeParams + $routeParams, + $window ) { var ctrl = this; @@ -69,6 +71,9 @@ // get defaultIndexUrl var url = resourceType.getDefaultIndexUrl(); + // add webroot + var webroot = $window.WEBROOT; + url = navigationsService.setAbsoluteURI(webroot, url); // if querystring has 'nav' parameter, overwrite the url var query = $location.search(); if (query.hasOwnProperty("nav")) { |