diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index a7d6cbebe..4d68245d2 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -876,15 +876,13 @@ class BasePage(object): # optional "link-home" feature; see bug report #2736 if self.report.options['linkhome']: - home_person = db.get_default_person() - if home_person: + center_person = db.get_person_from_gramps_id(self.report.options['pid']) + if center_person: home_person_url = self.report.build_url_fname_html( - home_person.handle, - "ppl", - self.up) + center_person.handle, "ppl", self.up) - home_person_name = self.get_name(home_person) - msg += '
' + _(' Created for %s') % ( + home_person_name = self.get_name(center_person) + msg += _(' Created for %s') % ( home_person_url, home_person_name) # creation date