Permalink
Browse files

Don't append slashes to absolute URLs

This prevented instant redirects to media files by specifying absolute media file URLs
  • Loading branch information...
1 parent 0b4f7d2 commit 9205adca36ec51b85521eea6b5e49733b4daa66e @dbunskoek dbunskoek committed Jan 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 fiber/models.py
View
@@ -106,7 +106,7 @@ def get_absolute_url(self):
if self.url == '':
return ''
if self.url.startswith('/'):
- return '%s/' % self.url.rstrip('/')
+ return self.url
elif self.url.startswith('http://') or self.url.startswith('https://'):
return self.url
else:

0 comments on commit 9205adc

Please sign in to comment.