Commit ecccea2398a28388b9acc9d94f4364870ea49029

Authored by Antonio Terceiro
1 parent 400781c4

Fix root of hosted domain

config/routes.rb
... ... @@ -129,6 +129,6 @@ Noosfero::Application.routes.draw do
129 129  
130 130  
131 131 # match requests for content in domains hosted for profiles
132   - match '*page', :controller => 'content_viewer', :action => 'view_page'
  132 + match '/(*page)', :controller => 'content_viewer', :action => 'view_page'
133 133  
134 134 end
... ...
test/integration/routing_test.rb
... ... @@ -173,7 +173,7 @@ class RoutingTest < ActionController::IntegrationTest
173 173  
174 174 ActionDispatch::Request.any_instance.stubs(:host).returns('www.example.com')
175 175  
176   - assert_routing('', :controller => 'content_viewer', :action => 'view_page', :page => [])
  176 + assert_routing('', :controller => 'content_viewer', :action => 'view_page')
177 177 end
178 178  
179 179 def test_profile_under_hosted_domain
... ...