* @param boolean $temporaryRedirect
*/
public static function redirect($location, $sendStatusCode = false, $temporaryRedirect = true) {
+ // https://github.com/WoltLab/WCF/issues/2568
+ if (SessionHandler::getInstance()->isFirstVisit()) {
+ SessionHandler::getInstance()->register('__wcfIsFirstVisit', true);
+ }
+
if ($sendStatusCode) {
if ($temporaryRedirect) @header('HTTP/1.1 307 Temporary Redirect');
- else @header('HTTP/1.0 301 Moved Permanently');
+ else @header('HTTP/1.1 301 Moved Permanently');
}
header('Location: '.$location);