mason/dhandler (.image): Compare references rather than filenames.
[tgal] / mason / dhandler
index 91a513b..d36722b 100755 (executable)
@@ -207,7 +207,7 @@ Failed to find &lsquo;<% $path |h %>&rsquo;.
 %   for my $f (@$ff) {
   <& .thumbnail, target => $f->name, img => $img{$f}, size => $size,
                 caption => $m->interp->apply_escapes($f->name, "h"),
-                focus => $f->name eq "$base$ext" &>\
+                focus => $f eq $this &>\
 %   }
 </div>
 % }