aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-30 12:41:11 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-30 12:41:11 +0200
commite447675add441e0ee98adc0bedbb149c53e981fa (patch)
treed0fe0daf4c4c0178c221830736b584cf409646e9
parent7c1ed8d45863e2b7622927db78539fd4ce78926b (diff)
downloadsonarqube-e447675add441e0ee98adc0bedbb149c53e981fa.tar.gz
sonarqube-e447675add441e0ee98adc0bedbb149c53e981fa.zip
Fix Web API URL when not logged in
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/api_documentation/index.html.erb2
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/nonav.html.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/api_documentation/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/api_documentation/index.html.erb
index 4d8d2500e2d..5b1b5346f45 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/api_documentation/index.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/api_documentation/index.html.erb
@@ -1,6 +1,6 @@
<% content_for :extra_script do %>
<script>
- window.sonarqube.urlRoot = window.baseUrl + '/api_documentation';
+ window.sonarqube.urlRoot = window.baseUrl + '/web_api';
</script>
<script src="/js/bundles/api-documentation.js?v=<%= sonar_version -%>"></script>
<% end %>
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/nonav.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/nonav.html.erb
index 52ddb591760..34a06883d13 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/nonav.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/layouts/nonav.html.erb
@@ -24,7 +24,7 @@
<a href="http://www.sonarqube.org/documentation" target="sonar_doc">Documentation</a> -
<a href="http://www.sonarqube.org/support" target="support">Get Support</a> -
<a href="http://redirect.sonarsource.com/doc/plugin-library.html" target="plugins">Plugins</a> -
- <a href="/api_documentation">Web Service API</a>
+ <a href="/web_api">Web API</a>
</div>
<%= render 'branding/footer' -%>
</div>