From 194cd1cd16b1e9595716d71ac98d59615872ea52 Mon Sep 17 00:00:00 2001 From: Emilien Klein Date: Sun, 4 Jan 2015 15:19:14 -0500 Subject: [PATCH] Redirect to home page after deleting a link Fixes issue 87 --- index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.php b/index.php index 67bbb2b..76d8f31 100644 --- a/index.php +++ b/index.php @@ -1613,9 +1613,7 @@ function renderPage() // If we are called from the bookmarklet, we must close the popup: if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo ''; 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; }