diff --git a/control/HTTPResponse.php b/control/HTTPResponse.php index 8b4cd9412..dbcfec613 100644 --- a/control/HTTPResponse.php +++ b/control/HTTPResponse.php @@ -238,13 +238,17 @@ class SS_HTTPResponse { $url = Director::absoluteURL($this->headers['Location'], true); $urlATT = Convert::raw2htmlatt($url); $urlJS = Convert::raw2js($url); - echo - "

Redirecting to " - . "$urlATT... (output started on $file, line $line)

- - "; + $title = Director::isDev() + ? "{$urlATT}... (output started on {$file}, line {$line})" + : "{$urlATT}..."; + echo <<Redirecting to {$title}

+ +"; +EOT + ; } else { $line = $file = null; if(!headers_sent($file, $line)) {