Skip to content
Snippets Groups Projects
Commit 3e8aa3c6 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

excluded metrics endpoint from redirects

parent a78d6462
No related branches found
No related tags found
1 merge request!1591excluded metrics endpoint from redirects
...@@ -19,8 +19,9 @@ class LocalizationRedirect ...@@ -19,8 +19,9 @@ class LocalizationRedirect
$locale = LaravelLocalization::getCurrentLocale(); $locale = LaravelLocalization::getCurrentLocale();
$host = $request->getHttpHost(); $host = $request->getHttpHost();
// We only redirect to the TLDs in the production version and exclude our onion domain // 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); return $next($request);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment