(v8.5.6) any settings that redirect from https://www.xxx to https://xxx in the admin area?

Solved it. It’s written in the file:
application/config/generated_overrides/concrete.php

the line:
‘redirect_to_canonical_url’ => 1,
is set to
‘redirect_to_canonical_url’ => 0, (if not rendering at canonical URL only)