diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 38e6b44eb6f1d1b9f0e3c6556c175626518f84b0..1a47a3c0ee3fea1cb6207070b7287fce6bad86b4 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -118,8 +118,7 @@ class ApplicationController < ActionController::Base
       end
 
       project_path = "#{namespace}/#{id}"
-      @project = Project.find_with_namespace(project_path) ||
-        Project.find_with_namespace(project_path, case_sensitive: false)
+      @project = Project.find_with_namespace(project_path)
 
       if @project and can?(current_user, :read_project, @project)
         if @project.path_with_namespace != project_path
diff --git a/app/models/project.rb b/app/models/project.rb
index b2a8dde9ba2b5e987ed40597f4c874d1119e2baf..f9bed7cf89f16676ad1074c3667703efd3419840 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -235,7 +235,7 @@ class Project < ActiveRecord::Base
       where('projects.archived = ?', false).where('LOWER(projects.name) LIKE :query', query: "%#{query.downcase}%")
     end
 
-    def find_with_namespace(id, case_sensitive: true)
+    def find_with_namespace(id)
       namespace_path, project_path = id.split('/')
 
       return nil if !namespace_path || !project_path
@@ -247,14 +247,8 @@ class Project < ActiveRecord::Base
         joins(:namespace).
         iwhere('namespaces.path' => namespace_path)
 
-      projects = 
-        if case_sensitive
-          projects.where('projects.path' => project_path)
-        else
-          projects.iwhere('projects.path' => project_path)
-        end
-      
-      projects.take
+      projects.where('projects.path' => project_path).take || 
+        projects.iwhere('projects.path' => project_path).take
     end
 
     def visibility_levels