]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Redirect to home page after deleting a link 90/head
authorEmilien Klein <emilien@klein.st>
Sun, 4 Jan 2015 20:19:14 +0000 (15:19 -0500)
committerEmilien Klein <emilien@klein.st>
Sun, 4 Jan 2015 20:19:14 +0000 (15:19 -0500)
Fixes issue 87

index.php

index c4c45e534cf7dada4f41c794e2673a7998115273..e50c0181ae3d9146cefe62718008b1421d83940f 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1546,9 +1546,7 @@ function renderPage()
 
         // If we are called from the bookmarklet, we must close the popup:
         if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script language="JavaScript">self.close();</script>'; exit; }
-        $returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' );
-        if ($returnurl=='?') { $returnurl = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '?'); }
-        header('Location: '.$returnurl); // After deleting the link, redirect to the page the user was on.
+        header('Location: ?'); // After deleting the link, redirect to the home page.
         exit;
     }