Trim URL for correct visualization of results