Error connecting to any public wifi that requires login page.
This happened with a previous macbook, and has happened again using my M1 Macbook pro. Anytime I try to connect to a public wifi network (starbucks, etc.) where you have to login or accept terms to access internet, the pop-up to accept terms errors out with the "A problem occured. The webpage could not be loaded." error. It happens on every single network, so it's not an issue with the individual wifi network, it has to be an issue with my laptop settings.
I have been using the "https://captive.apple.com/hotspot-detect.html" link to open in a web browser as a workaround, but even this doesn't work sometimes. Plus this isn't a fix, it's a workaround.
So, what is actually happening? How do I diagnose the issue (within my laptop, not on the network settings since it's public wifi and I can't ask Starbucks to let me change their settings)? And is there an actual fix that isn't just a workaround?
MacBook Pro 15″, macOS 10.15