Commit ecccea2398a28388b9acc9d94f4364870ea49029
1 parent
400781c4
Exists in
master
and in
29 other branches
Fix root of hosted domain
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
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 | ... | ... |