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

Merge branch 'development' into 'master'

excluded metrics endpoint from redirects

See merge request !1591
parents 54097cd5 3e8aa3c6
No related branches found
No related tags found
3 merge requests!1645Development,!1641Development,!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