Commit ab9f6a09 authored by Nicholas Anderson's avatar Nicholas Anderson
Browse files

Relative URLs on "My Links" page

parent a9479d75
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class="container"> <div class="container">
<div class="col-md-8"> <div class="col-md-8">
<h3>Go Address:</h3> <h3>Go Address:</h3>
<a href="{{url.short}}">go.gmu.edu/{{url.short}}</a> <a href="{{url.short}}">{{domain}}{{url.short}}</a>
<br></br> <br></br>
<h3>Address Details:</h3> <h3>Address Details:</h3>
......
...@@ -177,7 +177,7 @@ def my_links(request): ...@@ -177,7 +177,7 @@ def my_links(request):
urls = URL.objects.filter(owner=request.user) urls = URL.objects.filter(owner=request.user)
domain = "//%s" % request.META.get('HTTP_HOST') + "/" domain = "%s://%s" % (request.scheme, request.META.get('HTTP_HOST')) + "/"
return render(request, 'my_links.html', { return render(request, 'my_links.html', {
'urls': urls, 'urls': urls,
......
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