]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7494 add web context to the login page
authorStas Vilchik <vilchiks@gmail.com>
Wed, 30 Mar 2016 13:57:15 +0000 (15:57 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 31 Mar 2016 11:09:07 +0000 (13:09 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/views/sessions/_form.html.erb

index 17570f1ce121466d27c171a00069d0b7587e8ffa..9711bbadc42a7471695b10ec98c8a31459c03f73 100644 (file)
@@ -6,7 +6,7 @@
     <ul>
       <% auth_providers.each do |provider| %>
         <li>
-          <a href="/sessions/init/<%= provider.getKey().to_s %>"
+          <a href="<%= ApplicationController.root_context -%>/sessions/init/<%= provider.getKey().to_s %>"
              style="background-color: <%= provider.getDisplay().getBackgroundColor().to_s %>"
              title="Log in with <%= provider.getName().to_s -%>">
             <img alt="<%= provider.getName().to_s -%>" width="20" height="20"