Commit 3e8aa3c6 authored by Dominik Hebeler's avatar Dominik Hebeler

excluded metrics endpoint from redirects

parent a78d6462
......@@ -19,8 +19,9 @@ class LocalizationRedirect
$locale = LaravelLocalization::getCurrentLocale();
$host = $request->getHttpHost();
// We only redirect to the TLDs in the production version and exclude our onion domain
if(env("APP_ENV", "") !== "production" || $host === "b7cxf4dkdsko6ah2.onion"){
if(env("APP_ENV", "") !== "production" || $host === "b7cxf4dkdsko6ah2.onion" || $request->is('metrics')){
return $next($request);
}
......
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