]> source.dussan.org Git - sonarqube.git/commitdiff
redirect from /issues/search to /issues
authorStas Vilchik <vilchiks@gmail.com>
Tue, 8 Nov 2016 15:41:37 +0000 (16:41 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 9 Nov 2016 15:32:17 +0000 (16:32 +0100)
server/sonar-web/src/main/js/main/nav/global/global-nav-menu.js
server/sonar-web/src/main/webapp/WEB-INF/app/controllers/issues_controller.rb
server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/index.html.erb [new file with mode: 0644]
server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/search.html.erb [deleted file]

index c9707bd89b68370d41cd6b9c2b3984c2c158eef1..b959d4aec995184d53ad523ed0cf74882f936eda 100644 (file)
@@ -40,7 +40,7 @@ export default React.createClass({
   },
 
   renderIssuesLink () {
-    const url = window.baseUrl + '/issues/search';
+    const url = window.baseUrl + '/issues';
     return (
         <li className={this.activeLink('/issues')}>
           <a href={url}>{translate('issues.page')}</a>
index 8303cd1c33c7ddd348ed1d2117f6ffa75d59cc42..8385def1ca3556e4d7bdc97815a4da000467d980 100644 (file)
@@ -25,12 +25,12 @@ class IssuesController < ApplicationController
 
   # GET /issues/index
   def index
-    redirect_to :action => 'search'
+
   end
 
   # GET /issues/search
   def search
-
+    redirect_to :action => 'index'
   end
 
   def show
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/index.html.erb
new file mode 100644 (file)
index 0000000..b1baf27
--- /dev/null
@@ -0,0 +1,3 @@
+<% content_for :extra_script do %>
+  <script src="<%= ApplicationController.root_context -%>/js/bundles/issues.js?v=<%= sonar_version -%>"></script>
+<% end %>
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/search.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/search.html.erb
deleted file mode 100644 (file)
index b1baf27..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<% content_for :extra_script do %>
-  <script src="<%= ApplicationController.root_context -%>/js/bundles/issues.js?v=<%= sonar_version -%>"></script>
-<% end %>