IIS redirect trailing slash — fully fixed FIX
All header() redirects across index.php, logout.php, settings.php, ticket.php, and auth.php were using app_url() which produced broken paths on IIS when SCRIPT_NAME returned / or empty string. Replaced every redirect with config('site_url') directly — no more IIS path manipulation possible.