Fix wiki links did not load properly after login if your session was expired

This commit is contained in:
nathangray 2018-01-24 10:28:34 -07:00
parent f20b101dbe
commit 670b74cf23

View File

@ -865,8 +865,8 @@ abstract class Ajax extends Api\Framework
else if (strpos($url, 'menuaction') > 0)
{
// Coming in with a specific URL, save it and redirect to index.php
// so reloads work nicely
$last_direct_url = $url;
// so reloads work nicely, but strip cd=yes or we'll get the framework again
$last_direct_url = preg_replace('/[&?]cd=yes/','',$url);
Api\Framework::redirect_link('/index.php?cd=yes');
}
else