Add redirect for fetch
This commit is contained in:
parent
2b4c710e3f
commit
21aa82e064
1 changed files with 1 additions and 4 deletions
|
@ -44,10 +44,7 @@ class Fetch extends BaseModule
|
||||||
|
|
||||||
if (Strings::normaliseLink($host) != Strings::normaliseLink($app->getBaseURL())) {
|
if (Strings::normaliseLink($host) != Strings::normaliseLink($app->getBaseURL())) {
|
||||||
$location = $host . "/fetch/" . $app->argv[1] . "/" . urlencode($guid);
|
$location = $host . "/fetch/" . $app->argv[1] . "/" . urlencode($guid);
|
||||||
|
$app->redirect($location);
|
||||||
header("HTTP/1.1 301 Moved Permanently");
|
|
||||||
header("Location:" . $location);
|
|
||||||
exit();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue