From 924296a44b11d51ada24ab00c713311ee48ff13b Mon Sep 17 00:00:00 2001
From: Matthieu Guimard <matthieu.guimard@univ-grenoble-alpes.fr>
Date: Tue, 11 Mar 2025 15:02:34 +0100
Subject: [PATCH] added url prefix and site name in item view

---
 src/ptf/views/base_views.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ptf/views/base_views.py b/src/ptf/views/base_views.py
index f52d505a..bde5a143 100644
--- a/src/ptf/views/base_views.py
+++ b/src/ptf/views/base_views.py
@@ -328,6 +328,8 @@ class ItemView(TemplateView):
         collection = self.obj.get_collection()
         context["journal"] = collection
         context["obj"] = self.obj
+        context["url_prefix"] = getattr(settings, "SITE_URL_PREFIX", None)
+        context["site_name"] = getattr(settings, "SITE_NAME", None)
         return context
 
     def get(self, request, *args, **kwargs):
-- 
GitLab