Modified pattern on url.replace call so that it matches the actual url t...

I did this modification so the proper URL is requested by the UI. Otherwise URLs are tokenized as :id/:otherData.json but the replace is looking for something like {id}/{otherData} so it ends up requesting http://sampleendpoint.com/api/:id/:otherdata.json