diff --git a/src/includes/routes.php b/src/includes/routes.php index 67e413dd..e550bda9 100644 --- a/src/includes/routes.php +++ b/src/includes/routes.php @@ -262,6 +262,18 @@ function handle_static_file($request) { } LSurl :: add_handler('#^(?Pimage|css|js)/(?P[^/]+)$#', 'handle_static_file', false); +/* + * Handle default browser favicon.ico request + * + * @param[in] $request LSurlRequest The request + * + * @retval void + */ +function handle_favicon_ico_view($request) { + LSurl :: redirect('image/favicon'); +} +LSurl :: add_handler('#^favicon\.ico#', 'handle_favicon_ico_view', false); + /* * Handle libs file request *