From 466032296457c6d528bf16fa42c3ecc7153e277a Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 6 Oct 2016 13:04:33 +0100 Subject: [PATCH] Remove hardcoded URL --- RIGS/rigboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RIGS/rigboard.py b/RIGS/rigboard.py index a22f78ae..d42c9fa8 100644 --- a/RIGS/rigboard.py +++ b/RIGS/rigboard.py @@ -54,7 +54,7 @@ class EventOembed(generic.View): def get(self, request, pk=None): - base_url = "https://rigs.nottinghamtec.co.uk" + base_url = request.scheme + '://' + request.META['HTTP_HOST'] full_url = base_url+reverse('event_embed', args=[pk]) data = {