Commit 09b960f0 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Provide domain of url to view page

parent 967702e4
......@@ -150,10 +150,13 @@ def view(request, short):
do not need to be logged in to view info.
domain = request.META.get('HTTP_HOST') + "/"
url = get_object_or_404(URL, short__iexact = short)
return render(request, 'view.html', {
'url': url,
'domain' : domain,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment