How to prevent xss script injection into browser url

Hi, Its okay solved already ya, this is for my company website, the security team have encounter this vulnerability, and given to me to resolve the issue. Anyway thanks for replying .Have a good day