From 657837af111387c93b3a75149d93856df12c00d9 Mon Sep 17 00:00:00 2001 From: Emilien Klein Date: Sun, 4 Jan 2015 15:19:14 -0500 Subject: Redirect to home page after deleting a link Fixes issue 87 --- index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index c4c45e53..e50c0181 100644 --- 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 ''; 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; } -- cgit v1.2.3