Open Question: My dog likes to pee in the exciting front yard where the busy road is. I want her to pee in back.?

She doesn't want to pee in the boring backyard anymore now that she's seen the busy road and all the traffic and the front yard 10 feet by the width of the house and some few feet to the side. We had to take her in and out the front door because we had contractors in back and now we can't get her to go in back again. Its so much safer. She will hold it and not pee and then pee in her kennel or just inside the door instead of peeing in the backyard. We put her out loose in the back every day for a couple hours and she poops then. That is never a problem. We are really afraid there could be a fatality with this very small yard and busy traffic zone. But she does pee there happily. If she got away she'd be dead in a minute. I know she's bored and confused and we have another dog and he has no problems with this. He's completely mixed breed, 2 years old. She's a year old terrier/beagle mix. We had to change locations on her in the middle of training and now she won't go back. Thanks for any help you can give me.