Keeps redirecting to live site when try to logon

I have a live website:-

I have a copy on my computer using Local by Flywheel:-


But every time I try to logon like this:-


It redirects to the live site why?

Sounds like your site url isn’t configured correctly. This could be set incorrectly via your wp-config file or in your database.

From Local, click on your site in the Local Sites list > choose the “Database” tab > Open Adminer > pick the options table from the left. Edit the siteurl/home to match your Local domain.

Another idea is to export and import your site into Local again.