I made some repairs in a bathroom which included pulling an old outlet, switch, and the light. I'm coming back now to replace them with updated versions (gfci, switch, light) and scratching my head on how the wiring was working before. I should have taken a picture, but I didn't :(
The bathroom is on its own breaker. The source comes in to the GFCI, and then a cable feeds to the light, and finally from the light to the wall switch.
How can I wire this so the outlet remains on and the switch controls the light? I'm seeing a lot of examples of the light coming "after" the switch but that isn't how it was setup in this room. Everything is 14/2.