Have you tried?
<button onClick={handleClick}></button>
then
const handleClick = (e) => {
e.preventDefault();
const url = new URL("http:...");
window.location.href = url.toString();
}
If you still see being routed to https then it's because of how browser enforces https over http