Skip to content

Commit

Permalink
Use canonical URLs for embedded images
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljz committed Jan 29, 2016
1 parent 0d84233 commit 33c2a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangocms_ckeditor_filer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def url_image(request, image_id):
width = request.GET.get('width')
height = request.GET.get('height')

url = image.url
url = image.canonical_url
thumbnail_options = {}
if thumb_options is not None:
thumbnail_options = ThumbnailOption.objects.get(pk=thumb_options).as_dict
Expand All @@ -26,7 +26,7 @@ def url_image(request, image_id):
if thumbnail_options != {}:
thumbnailer = image.easy_thumbnails_thumbnailer
image = thumbnailer.get_thumbnail(thumbnail_options)
url = image.url
url = image.canonical_url

data = {
'url': url,
Expand Down

0 comments on commit 33c2a2b

Please sign in to comment.