We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65b51ef commit 4fb3033Copy full SHA for 4fb3033
1 file changed
public/lib/classes/router/util.php
@@ -160,9 +160,10 @@ public static function redirect(
160
ResponseInterface $response,
161
string|url $url,
162
): ResponseInterface {
163
+ $location = ($url instanceof url) ? $url->out(false) : $url;
164
return $response
165
->withStatus(302)
- ->withHeader('Location', (string) $url);
166
+ ->withHeader('Location', $location);
167
}
168
169
/**
0 commit comments