diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 1d3df38f..a8d6ee3f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -45,7 +45,7 @@ module ApplicationHelper # Creates a hyperlink to a Wiki page, or to a "new page" form if the page doesn't exist yet def link_to_page(page_name, web = @web, text = nil, options = {}) raise 'Web not defined' if web.nil? - home_page_url = url_for :web => web.address, :action => 'show', :id => page_name, :only_path => true + home_page_url = url_for :web => web.address, :action => 'show', :id => 'HomePage', :only_path => true base_url = home_page_url.sub(%r-/show/HomePage/?$-, '') web.make_link(page_name, text, options.merge(:base_url => base_url)) end diff --git a/app/views/wiki/recently_revised.rhtml b/app/views/wiki/recently_revised.rhtml index 6733ea4f..1e4364d6 100644 --- a/app/views/wiki/recently_revised.rhtml +++ b/app/views/wiki/recently_revised.rhtml @@ -20,9 +20,9 @@ <% end %> + \ No newline at end of file