Redirect to home page after deleting a link

Fixes issue 87
This commit is contained in:
Emilien Klein 2015-01-04 15:19:14 -05:00 committed by Knah Tsaeb
parent 01342dd5a4
commit 194cd1cd16

View file

@ -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 '<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;
}