Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#12902 closed defect (fixed)

nameToUrl incorrectly assumes getModuleInfo always returns URLs with a .js extension

Reported by: Colin Snover Owned by: Rawld Gill
Priority: high Milestone: 1.7
Component: Core Version: 1.6.1
Keywords: loader Cc:
Blocked By: Blocking:


In r24793 dojo.js:750, nameToUrl incorrectly truncates URLs returned from getModuleInfo if the first return is followed (dojo.js:666), because that return does *not* always return a URL with a .js extension. nameToUrl should probably url.replace(/\.js$/, '') instead of url.substring(0, url.length - 3).

Change History (3)

comment:1 Changed 11 years ago by Kenneth G. Franqueiro

Component: GeneralCore
Milestone: tbd1.7
Owner: set to Rawld Gill

Looks like the line in question is now dojo.js:747 (as of 24823)

comment:2 Changed 11 years ago by Rawld Gill

Resolution: fixed
Status: newclosed

fixed in [24014]

comment:3 Changed 11 years ago by Colin Snover

Looks like it was actually fixed in [25014] :)

Note: See TracTickets for help on using tickets.