From 38d660d6c5e6face46ef659af9b2945bea42dd66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Thu, 29 Aug 2024 09:59:59 +0200 Subject: [PATCH] fix: prepend FQDN when opneing website --- crowdfunding_compassion/models/crowdfunding_project.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crowdfunding_compassion/models/crowdfunding_project.py b/crowdfunding_compassion/models/crowdfunding_project.py index f8bf58b..1f6ffad 100644 --- a/crowdfunding_compassion/models/crowdfunding_project.py +++ b/crowdfunding_compassion/models/crowdfunding_project.py @@ -523,3 +523,8 @@ def get_sponsor_icon(self): "crowdfunding_compassion/static/src/img/icn_children.png", "rb" ).read() ) + + def open_website_url(self): + res = super().open_website_url() + res["url"] = urlparse.urljoin(self.website_id._get_http_domain(), res["url"]) + return res