Looking for help with recently diagnosed urinary crystals

My 12yo corgi/jack russell rescue pup was recently experiencing spotting apparently from urinary crystals. Spotting shows up on my white bedspread. The vet prescribed prescription canned food, kibble and treats “for life.” I have been cooking his food for about 3 months and probably not providing adequate nutrients and feel like that could be causing his urinary crystals though I’m not sure. The vet suggested I not depart from the prescription diet because changes in Ph or salt content can exacerbate his problem. He’s not excited about the prescription food, ate it initially (except the treats!) but is now on strike.

He also has a long history of gastro sensitivities with some history of blood in his stools which I have stabilized with pre and probiotics with herbs. I had stopped those because of what the vet said about Ph and salt but I can tell his gastro irritation has come back.

I would like to resume his homecooked food but want to make sure I’m not making the problem worse and want to eliminate it. I certainly don’t want to create any long term problems and he is 12.

Can a coach help me with this?

Rocky’s mom, Libby