diff --git a/pflaenzli/pflaenzli/templates/offer/detail.html b/pflaenzli/pflaenzli/templates/offer/detail.html
index 218d7ef..a89745a 100644
--- a/pflaenzli/pflaenzli/templates/offer/detail.html
+++ b/pflaenzli/pflaenzli/templates/offer/detail.html
@@ -6,6 +6,11 @@
+
+
+
+
{% endblock %}
{% block content %}
{% if offer.user == request.user %}
diff --git a/pflaenzli/pflaenzli/views.py b/pflaenzli/pflaenzli/views.py
index 766c188..772bad2 100644
--- a/pflaenzli/pflaenzli/views.py
+++ b/pflaenzli/pflaenzli/views.py
@@ -53,6 +53,7 @@ def create_offer(request):
def offer_detail(request, offer_id):
offer = get_object_or_404(Offer, id=offer_id)
wishes = Wish.objects.filter(user=offer.user)
+ host = f"{request.scheme}://{request.META.get('HTTP_HOST')}"
if request.user.is_authenticated:
if offer.zipcode and request.user.zipcode:
@@ -68,7 +69,7 @@ def offer_detail(request, offer_id):
else:
dist = None
- return render(request, "offer/detail.html", {"offer": offer, "wishes": wishes, "dist": dist})
+ return render(request, "offer/detail.html", {"host": host, "offer": offer, "wishes": wishes, "dist": dist})
@login_required