/** * Checks to see if any values (search or sort) were loaded from the session, and if so redirects the user to the current URL with those values added * * @return void */ public static function redirectWithLoadedValues() { // If values were reset, redirect to the plain URL if (self::wasResetRequested()) { fURL::redirect(fURL::get() . fURL::removeFromQueryString('reset')); } $query_string = fURL::replaceInQueryString(array_keys(self::$loaded_values), array_values(self::$loaded_values)); $url = fURL::get() . $query_string; if ($url != fURL::getWithQueryString() && $url != fURL::getWithQueryString() . '?') { fURL::redirect($url); } }