diff --git a/picture.php b/picture.php
index dac560dfe..ee96083e8 100644
--- a/picture.php
+++ b/picture.php
@@ -947,6 +947,7 @@ if (isset($picture['next'])
$template->assign('U_PREFETCH', $picture['next']['derivatives'][pwg_get_session_var('picture_deriv', IMG_LARGE)]->get_url() );
}
+$template->assign('U_CANONICAL', make_picture_url( array('image_id'=>$picture['current']['id'], 'image_file'=>$picture['current']['file']) ) );
// +-----------------------------------------------------------------------+
// | sub pages |
diff --git a/themes/default/template/header.tpl b/themes/default/template/header.tpl
index 5dc51f97b..444b3fc2d 100644
--- a/themes/default/template/header.tpl
+++ b/themes/default/template/header.tpl
@@ -39,7 +39,8 @@
{/foreach}
-{if isset($U_PREFETCH) }{/if}
+{if isset($U_PREFETCH)}{/if}
+{if isset($U_CANONICAL)}{/if}
{if not empty($page_refresh) }{/if}