Does it work when i overwrite this function as long as there is no solution not forwarding on a AJAX call? So write this function into my mod and adding a context called AJAX would probably be enought. Changing the Context inside my php file which is requested on the ajax call and changing it back afterwards.
/* Killing Ajax redirect Bug */
function forward($location = "")
{
global $CONFIG;
if (!headers_sent() && get_context() != 'AJAX' )
{
$current_page = current_page_url();
if ((substr_count($location, 'http://') == 0) && (substr_count($location, 'https://') == 0)) {
$location = $CONFIG->url . $location;
}
header("Location: {$location}");
exit;
}
return false;
}
I have to test it today.
PS: No method overriding in PHP possible so i have to override the whole elgglib.php in my mod.
Doesn't work the way it should but i recognized there is a possibility to implement a hook in a newer version (1.7.4) of Elgg. :)
please could you tell me about the solution coz i need to stop redirecting after logout
and i didn't get it now:(
i think the problem is with $CONFIG array special at elgg_[url]
try to print the value of array and then you can get the trouple
but until now ididn't solve the problem to stop redirect after logout
soo could you help me please ??
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.