Commit 2da36e2c3dd3b916942a9b78c1e6cfe558bc426d
1 parent
23914711
Exists in
master
and in
29 other branches
Fix old route format
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
config/routes.rb
... | ... | @@ -131,8 +131,8 @@ Noosfero::Application.routes.draw do |
131 | 131 | match ':profile/*page/versions', :controller => 'content_viewer', :action => 'article_versions', :profile => /#{Noosfero.identifier_format}/, :constraints => EnvironmentDomainConstraint.new |
132 | 132 | match '*page/versions', :controller => 'content_viewer', :action => 'article_versions' |
133 | 133 | |
134 | - map.connect ':profile/*page/versions_diff', :controller => 'content_viewer', :action => 'versions_diff', :profile => /#{Noosfero.identifier_format}/, :conditions => { :if => lambda { |env| !Domain.hosting_profile_at(env[:host]) } } | |
135 | - map.connect '*page/versions_diff', :controller => 'content_viewer', :action => 'versions_diff' | |
134 | + match ':profile/*page/versions_diff', :controller => 'content_viewer', :action => 'versions_diff', :profile => /#{Noosfero.identifier_format}/, :conditions => { :if => lambda { |env| !Domain.hosting_profile_at(env[:host]) } } | |
135 | + match '*page/versions_diff', :controller => 'content_viewer', :action => 'versions_diff' | |
136 | 136 | |
137 | 137 | # match requests for profiles that don't have a custom domain |
138 | 138 | match ':profile(/*page)', :controller => 'content_viewer', :action => 'view_page', :profile => /#{Noosfero.identifier_format}/, :constraints => EnvironmentDomainConstraint.new | ... | ... |