Hi Stephen,
You can use Get_Web_Value command with Javascript option (no locator required) and enter the below:
const str = "https://apps.test.era.nih.gov/rcdc/endpoints.era";
const str2 = str.substring(0, str.length - 14);
return str2
In the first line, the value here is static but can always be pointed to a variable from Get_Current_URL command. For example:
const str = "@url";
Regards,
Subject7 Team