Verified Commit 7593e0af authored by Artemis's avatar Artemis 🐱

Fixed image link to include everything

parent 5139ae79
......@@ -119,7 +119,7 @@ return [
// rewrites
[
'methods' => ['GET'],
'path' => '/image/{id}',
'path' => '/image/(.+)',
'action' => 'Rewrite\\Image'
]
];
......@@ -22,7 +22,7 @@ class Image implements Action
public function __invoke(?array $routeParams): bool
{
redirect(self::IMAGE_BASE_URL . '/' . $routeParams['id']);
redirect(self::IMAGE_BASE_URL . '/' . $routeParams[1]);
return false;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment