I was having the same problem..
Check under general options and see what your wordpress address and blog address urls are set to.
I have mine in my root directory, and I set my wp url to just my https://www.mydomain.com and my blog url to https://www.mydomain.com/index.php and now it seems to be working.
Oh, and that is not my actual domain, of course. Mine is adult in nature, so I don’t list it here.