diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index da8e503..fb04ea0 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -944,9 +944,9 @@ module ApplicationHelper # from Article model for an ArticleBlock. def reference_to_article(text, article, anchor=nil) if article.profile.domains.empty? - href = "/#{article.url[:profile]}/" + href = "#{Noosfero.root}/#{article.url[:profile]}/" else - href = "http://#{article.profile.domains.first.name}/" + href = "http://#{article.profile.domains.first.name}#{Noosfero.root}/" end href += article.url[:page].join('/') href += '#' + anchor if anchor -- libgit2 0.21.2