In my application, I am receiving one URL with different parameters. I need to check if “locale” parameter is present in the parameter or not. If the parameter is present in the URL then I need to modify the value and if the parameter is not present then I need to add the URL.
For this requirement how I can create new URL which will be having existing URL with “locale” parameter?