code: function (moduleNamePlusExt) {
                          var index = moduleNamePlusExt.lastIndexOf('.'),
                              ext = null;
  
                          if (index !== -1) {
                              ext = moduleNamePlusExt.substring(index, moduleNamePlusExt.length);
                              moduleNamePlusExt = moduleNamePlusExt.substring(0, index);
                          }
  
                          return context.nameToUrl(normalize(moduleNamePlusExt,
                                                  relMap && relMap.id, true), ext);
                      }
docs: Converts a module name + .extension into an URL path.
  *Requires* the use of a module name. It does not support using
  plain URLs like nameToUrl.