aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/api-documentation/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/api-documentation/app.js')
-rw-r--r--server/sonar-web/src/main/js/apps/api-documentation/app.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/apps/api-documentation/app.js b/server/sonar-web/src/main/js/apps/api-documentation/app.js
index 3e706bcc05f..bc38d046613 100644
--- a/server/sonar-web/src/main/js/apps/api-documentation/app.js
+++ b/server/sonar-web/src/main/js/apps/api-documentation/app.js
@@ -29,7 +29,6 @@ define([
var $ = jQuery,
App = new Marionette.Application(),
init = function (options) {
-
// State
this.state = new Backbone.Model({ internal: false });
@@ -65,7 +64,7 @@ define([
this.router = new Router({ app: this });
Backbone.history.start({
pushState: true,
- root: getRoot()
+ root: options.urlRoot
});
};
@@ -75,13 +74,6 @@ define([
});
});
- function getRoot () {
- var API_DOCUMENTATION = '/api_documentation',
- path = window.location.pathname,
- pos = path.indexOf(API_DOCUMENTATION);
- return path.substr(0, pos + API_DOCUMENTATION.length);
- }
-
return App;
});