Fix broken favicon requests

This commit is contained in:
swagg boi 2023-11-14 00:35:06 -05:00
parent 917097b26a
commit 93f902a01a

View file

@ -41,6 +41,11 @@ $router.post(-> $request, $response {
$response.html($template.render: 'index', %stash);
});
# Don't try to process favicon as a hyperlink
$router.get('/favicon.ico', -> $request, $response {
$response.status(204)
});
# Process the hyperlink
$router.get('/--meta-refresh/**', -> $request, $response {
my Str $return-url = $request.path.subst: /^ '/--meta-refresh/'/, Empty;