Commit 8cd9c0af76a639c27d287a9b6a605da892a2132b
1 parent
dcf73dee
Exists in
master
and in
27 other branches
Add subdirectory to link "Read more" on article block.
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Parley Martins <parleypachecomartins@gmail.com>
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/helpers/application_helper.rb
... | ... | @@ -944,9 +944,9 @@ module ApplicationHelper |
944 | 944 | # from Article model for an ArticleBlock. |
945 | 945 | def reference_to_article(text, article, anchor=nil) |
946 | 946 | if article.profile.domains.empty? |
947 | - href = "/#{article.url[:profile]}/" | |
947 | + href = "#{Noosfero.root}/#{article.url[:profile]}/" | |
948 | 948 | else |
949 | - href = "http://#{article.profile.domains.first.name}/" | |
949 | + href = "http://#{article.profile.domains.first.name}#{Noosfero.root}/" | |
950 | 950 | end |
951 | 951 | href += article.url[:page].join('/') |
952 | 952 | href += '#' + anchor if anchor | ... | ... |