diff --git a/adev/src/app/features/references/helpers/manifest.helper.spec.ts b/adev/src/app/features/references/helpers/manifest.helper.spec.ts index 958c33b87f6..569965887a4 100644 --- a/adev/src/app/features/references/helpers/manifest.helper.spec.ts +++ b/adev/src/app/features/references/helpers/manifest.helper.spec.ts @@ -30,6 +30,15 @@ describe('ManiferHelper', () => { }; const result2 = getApiUrl(packageEntry2, apiName); expect(result2).toBe('api/animations/browser/DatePipe'); + + const packageEntry3: ApiManifestPackage = { + moduleName: '@angular/common/http/testing', + moduleLabel: 'common/http/testing', + normalizedModuleName: 'angular_common_http_testing', + entries: [], + }; + const result3 = getApiUrl(packageEntry3, apiName); + expect(result3).toBe('api/common/http/testing/DatePipe'); }); }); }); diff --git a/adev/src/app/features/references/helpers/manifest.helper.ts b/adev/src/app/features/references/helpers/manifest.helper.ts index d13f70f79b9..3c6b00e066f 100644 --- a/adev/src/app/features/references/helpers/manifest.helper.ts +++ b/adev/src/app/features/references/helpers/manifest.helper.ts @@ -62,7 +62,7 @@ export function getApiUrl(packageEntry: ApiManifestPackage, apiName: string): st // packages like `angular_core` should be `core` // packages like `angular_animation_browser` should be `animation/browser` .replace('angular_', '') - .replace('_', '/'); + .replaceAll('_', '/'); return `${PagePrefix.API}/${packageName}/${apiName}`; }