diff --git a/inc/html.php b/inc/html.php
index bc5f0953a82e9d2dd1886db571c04daf14037639..d3bf6a6f8ce86adc537a6ff7493f95073707eaeb 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -550,7 +550,9 @@ function html_revisions($first=0, $media_id = false){
                     $sizechange = null;
                 }
             }
-            $href = wl($id);
+            $pagelog = new PageChangeLog($ID);
+            $latestrev = array_pop($pagelog->getRevisions(-1, 1));
+            $href = wl($id,"rev=$latestrev",false,'&');
             $summary = $INFO['sum'];
             $editor = $INFO['editor'];
         }