diff --git a/config/routes.rb b/config/routes.rb
index <HASH>..<HASH> 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -5,10 +5,12 @@ Rails.application.routes.draw do
     constraints(:id => /[^\/]+/) do
       resources :discovered
       match 'discovered/:id/refresh_facts' => 'discovered#refresh_facts', :as => 'refresh_facts'
-      match 'architecture_selected_discovered' => 'hosts#architecture_selected'
-      match 'os_selected_discovered' => 'hosts#os_selected'
-      match 'medium_selected_discovered' => 'hosts#medium_selected'
     end
   end
 
+  # Needed to make the hosts/edit form render
+  match 'architecture_selected_discovered' => 'hosts#architecture_selected'
+  match 'os_selected_discovered' => 'hosts#os_selected'
+  match 'medium_selected_discovered' => 'hosts#medium_selected'
+
 end
Fix edit routes, they need to be outside the module scope