Add redirect for fetch
This commit is contained in:
parent
2b4c710e3f
commit
21aa82e064
|
@ -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 New Issue
Block a user