mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Simplify router redirect
This commit is contained in:
parent
2514391007
commit
c92a14d318
1 changed files with 0 additions and 6 deletions
|
|
@ -749,12 +749,6 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw
|
|||
return false;
|
||||
} elseif ($type === 'redirect') {
|
||||
$url = $rule->getAttribute('redirectUrl', '');
|
||||
|
||||
$query = ($swooleRequest->server['query_string'] ?? '');
|
||||
if (!empty($query)) {
|
||||
$url .= '?' . $query;
|
||||
}
|
||||
|
||||
$response->redirect($url, \intval($rule->getAttribute('redirectStatusCode', 301)));
|
||||
return true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue