My password manager won’t allow autofilling in the latter case, because it remembers the domain I used at sign-up time.
On the rare occasion that my password manager refuses to autofill, I take a step back and painstakingly try to understand why. This happens about once a year or twice.