diff --git a/config/routes.rb b/config/routes.rb index e56c720..e1237d4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -129,6 +129,6 @@ Noosfero::Application.routes.draw do # match requests for content in domains hosted for profiles - match '*page', :controller => 'content_viewer', :action => 'view_page' + match '/(*page)', :controller => 'content_viewer', :action => 'view_page' end diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 1bbcb8c..d1911b7 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -173,7 +173,7 @@ class RoutingTest < ActionController::IntegrationTest ActionDispatch::Request.any_instance.stubs(:host).returns('www.example.com') - assert_routing('', :controller => 'content_viewer', :action => 'view_page', :page => []) + assert_routing('', :controller => 'content_viewer', :action => 'view_page') end def test_profile_under_hosted_domain -- libgit2 0.21.2