diff --git drupalorg_versioncontrol/plugins/webviewer_url_handlers/DrupalorgVersioncontrolRepositoryUrlHandlerGitwebRewrite.class.php drupalorg_versioncontrol/plugins/webviewer_url_handlers/DrupalorgVersioncontrolRepositoryUrlHandlerGitwebRewrite.class.php
index 327aaa8..a68ebb0 100644
--- drupalorg_versioncontrol/plugins/webviewer_url_handlers/DrupalorgVersioncontrolRepositoryUrlHandlerGitwebRewrite.class.php
+++ drupalorg_versioncontrol/plugins/webviewer_url_handlers/DrupalorgVersioncontrolRepositoryUrlHandlerGitwebRewrite.class.php
@@ -57,6 +57,11 @@ class DrupalorgVersioncontrolRepositoryUrlHandlerGitwebRewrite extends Versionco
   }
 
   public function getItemViewUrl(&$item) {
+    if ($item->isDeleted()) {
+      // Do not link to deleted items.
+      return '';
+    }
+
     $placeholders = array(
       '%repo_name' => $this->repository->name,
       '%path'      => $item->path,
