From ecccea2398a28388b9acc9d94f4364870ea49029 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Wed, 2 Jan 2013 12:10:18 -0300 Subject: [PATCH] Fix root of hosted domain --- config/routes.rb | 2 +- test/integration/routing_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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