Anyone have this?????

My undies smell like ammonia. I was trying to figure out what the smell was and it reminded me of boxed hair dye. Could this be an infection? Or pregnancy? Anyone else experience this? I have a weak bladder and I’ve leaked before it’s usually when I have a cough and really need to go. But it’s never smelled like this before.