fix custom cart item edit path construction

The supporting data for constructing the links was hacky and hard to manage. It also broke when different submit paths were followed.