/mtc.js returns redirect to dashboard

Your software
My Mautic version is: 4.1.1
My PHP version is: 7.4
My Database type and version is: tidb

Your problem

curl https://DOMAIN/mtc.js
returns a redirect as below. This was working previously, i’m not sure what has changed.
But this prevents the tracking js from being fetched.

I use saml sso. The curl command is obv not signed in (so no cookies etc).

Why this redirect? What can i do to triage or resolve?

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='/s/dashboard'" />

        <title>Redirecting to /s/dashboard</title>
    </head>
    <body>
        Redirecting to <a href="/s/dashboard">/s/dashboard</a>.
    </body>