MAPG-69 make Redirect able to redirect to external sources

This commit is contained in:
bence committed 2020-06-21 15:12:44 +02:00
1 parent 295570a28d
commit 99c72d99be
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ if ($match !== null) {
return;
} elseif ($response instanceof MapGuesser\Interfaces\Response\IRedirect) {
header('Location: ' . Container::$request->getBase() . '/' . $response->getUrl(), true, $response->getHttpCode());
header('Location: ' . $response->getUrl(), true, $response->getHttpCode());
return;
}