url variable isn't defined and getting a runtime error because of it, added it from latest spree