forget_item: get ID from more fancy URLs