I can't think of anything in Moodle that would do this. My first thought is that your web server or .htaccess file is redirecting URLs with /admin in them.
That was my first thought too, but I installed 3.2.2 on the same server we were running Moodle 3.1.3 and didn't make any changes to our conf file or add any .htaccess files so I figured it was something different with 3.2.2 . It wasn't happening in 3.1.3. We actually don't have any .htaccess files anywhere on the server.
Are you running 3.2.2 and are the admin pages redirecting to https?
I've got 3.2.2 running on my test server and it definitely doesn't do that.
Have you got 'loginhttps' enabled?
It turned out to be a setting on our load balancer (Redirect Rewrite was set to Matching) so it was ignoring the headers. Working now.