Redirect to home page after deleting a link
Fixes issue 87
This commit is contained in:
parent
f8d83b35b6
commit
657837af11
1 changed files with 1 additions and 3 deletions
|
@ -1546,9 +1546,7 @@ function renderPage()
|
||||||
|
|
||||||
// If we are called from the bookmarklet, we must close the popup:
|
// 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; }
|
if (isset($_GET['source']) && $_GET['source']=='bookmarklet') { echo '<script language="JavaScript">self.close();</script>'; exit; }
|
||||||
$returnurl = ( isset($_POST['returnurl']) ? $_POST['returnurl'] : '?' );
|
header('Location: ?'); // After deleting the link, redirect to the home page.
|
||||||
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.
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue