Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
ab9f6a09
Commit
ab9f6a09
authored
Feb 19, 2016
by
Nicholas Anderson
Browse files
Relative URLs on "My Links" page
parent
a9479d75
Changes
2
Hide whitespace changes
Inline
Side-by-side
go/go/templates/link_box.html
View file @
ab9f6a09
...
...
@@ -17,7 +17,7 @@
<div
class=
"container"
>
<div
class=
"col-md-8"
>
<h3>
Go Address:
</h3>
<a
href=
"{{url.short}}"
>
go.gmu.edu/
{{url.short}}
</a>
<a
href=
"{{url.short}}"
>
{{domain}}
{{url.short}}
</a>
<br></br>
<h3>
Address Details:
</h3>
...
...
go/go/views.py
View file @
ab9f6a09
...
...
@@ -177,7 +177,7 @@ def my_links(request):
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'
,
{
'urls'
:
urls
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment