Opened 14 years ago

Closed 13 years ago

#7258 closed enhancement (fixed)

json.ref requires leading and trailing slashes on idPrefix

Reported by: maulin Owned by: Kris Zyp
Priority: lowest Milestone: 1.2
Component: DojoX Data Version: 1.1.1
Keywords: Cc: [email protected]
Blocked By: Blocking:


any chance we can make the leading and trailing slashes optional? (you could always add them if they aren't there) No big deal, but it may make my code a little prettier:


var store = new{

service:myService, target:"foo", schema:{properties:{...}}


Seems like this should work, but it doesn't. Only works if target is "/foo/".

Change History (3)

comment:1 Changed 14 years ago by Kris Zyp

Owner: changed from Jared Jurkiewicz to Kris Zyp

It is supposed to automatically add the trailing slash, but I found a problem with it that I will fix. However, do we really want to automatically add the leading slash? Omitting the leading slash allows you to do relative references to table URLs so that you can access URLs like /context/table/id relatively by creating a the store with target:"table".

comment:2 Changed 14 years ago by maulin

we do not need to auto-add leading slash, but without leading slash, the schema is not found is json.ref. Perhaps that is a bug?

comment:3 Changed 13 years ago by Kris Zyp

Resolution: fixed
Status: newclosed

(In [14568]) fixes #7258

Note: See TracTickets for help on using tickets.