Fix build full absolute url when no request
This commit is contained in:
parent
99b5f9544e
commit
6b52f6b2b2
1 changed files with 1 additions and 1 deletions
|
@ -5,4 +5,4 @@ def build_full_absolute_url(request, url):
|
|||
if request:
|
||||
return request.build_absolute_uri(url)
|
||||
else:
|
||||
return (settings.BLOG["base_url"] + url).replace("//", "/")
|
||||
return (settings.BLOG["base_url"] + url)[::-1].replace("//", "/", 1)[::-1]
|
||||
|
|
Reference in a new issue