How to Automatically Remove Items and Values in APEX URLs