Use current URL everywhere
Move item ID encoding/decoding to utils