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())) {
|
||||
$location = $host . "/fetch/" . $app->argv[1] . "/" . urlencode($guid);
|
||||
|
||||
header("HTTP/1.1 301 Moved Permanently");
|
||||
header("Location:" . $location);
|
||||
exit();
|
||||
$app->redirect($location);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue