The below code is meant to trim my string. Unfortunately it’s removing more than the ‘conf’ value.
Did I do this correctly?
What this is doing is adding a double html response address, so i’m removing the first url which is ‘conf’
String pageIdUrl = response.getRedirectUrl();
if(pageIdUrl.startsWith(conf.toString()));
{
pageIdUrl = pageIdUrl.substring(conf.toString().length());
}
It would appear that there is a misplaced semicolon that is stopping your if statement from working as you expect.