Skip to content

Commit

Permalink
Fixed preview link not being https
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Obrist committed Jun 9, 2011
1 parent 0b01f0c commit dc9a182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cms/admin/pageadmin.py
Expand Up @@ -1033,7 +1033,8 @@ def preview_page(self, request, object_id):
site = Site.objects.get_current()

if not site == page.site:
url = "http://%s%s" % (page.site.domain, url)
url = "http%s://%s%s" % ('s' if request.is_secure() else '',
page.site.domain, url)
return HttpResponseRedirect(url)

def change_status(self, request, page_id):
Expand Down

0 comments on commit dc9a182

Please sign in to comment.