you will need to see your medical provider so you can be properly examined have your urine tested etc. this is not something that can be blindly solved over the internet without a thorough medical history some lab work and a good examination to search for the reasons.
i have good color pee then a discharge of blood. yes the discharge of blood is after the pee. seems like a infection no blood seems to be in the pee.