diff --git a/app/Utils/SystemHealth.php b/app/Utils/SystemHealth.php index 4a25261fc266..fb329a85e358 100644 --- a/app/Utils/SystemHealth.php +++ b/app/Utils/SystemHealth.php @@ -84,9 +84,19 @@ class SystemHealth 'jobs_pending' => (int) Queue::size(), 'pdf_engine' => (string) self::getPdfEngine(), 'queue' => (string) config('queue.default'), + 'trailing_slash' => (bool) self::checkUrlState(), ]; } + public static function checkUrlState() + { + if (env('APP_URL') && substr(env('APP_URL'), -1) == '/') + return true; + + return false; + + } + public static function getPdfEngine() { if(config('ninja.invoiceninja_hosted_pdf_generation') || config('ninja.pdf_generator') == 'hosted_ninja')