The red was likely switched, the black of that cable was likely constant hot. A white may have been a switch loop.
How did you determine you had two hots? This is definitely NOT the case since the light works.
Also, WHY did you not turn off the breaker FIRST, and then TEST to make sure it was off????????????????????
I hate to be so blunt, but considering the questions asked, and the description given, I would leave the electrical work to a pro.
Folks always say, it's not rocket science. No, it's not, but you still need a pretty good clue to do even the smallest job. Even changing a light fixture can be a challenge under many circumstances.
This is why my blood boils when I see some handyman advertising "
minor electrical".

Bookmarks