Turns out we need that absolute option after all.
This commit is contained in:
parent
1e50137815
commit
2e747e814f
1 changed files with 5 additions and 3 deletions
|
|
@ -52,8 +52,11 @@ module PeopleHelper
|
|||
end
|
||||
|
||||
def person_href(person, opts={})
|
||||
link = "href='/"
|
||||
link += AppConfig.pod_url if opts[:absolute]
|
||||
if opts[:absolute]
|
||||
link = "href='#{AppConfig.pod_url}"
|
||||
else
|
||||
link = "href='/"
|
||||
end
|
||||
if person.local?
|
||||
username = person.diaspora_handle.split('@')[0]
|
||||
unless username.include?('.')
|
||||
|
|
@ -62,5 +65,4 @@ module PeopleHelper
|
|||
end
|
||||
return link+"people/#{person.id}'"
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue