aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index e2a599511..a4302676f 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -28,7 +28,9 @@
global $CONFIG;
if (!headers_sent()) {
- $_SESSION['last_forward_from'] = current_page_url();
+ $current_page = current_page_url();
+ if (strpos($current_page, $CONFIG->wwwroot . "action") ===false)
+ $_SESSION['last_forward_from'] = current_page_url();
$_SESSION['messages'] = system_messages();
if (substr_count($location, 'http://') == 0) {