[TechDebt][Blog][Angular] Two base-URL sources — service uses API_BASE_URL token, media URLs use environment.baseUrl (epic #705) #715

Open
opened 2026-07-19 01:15:53 +00:00 by spikerj · 0 comments
Owner

Epic #705. BlogService builds its API base from the API_BASE_URL injection token, while blog-entry-component.getMediaUrl() prepends environment.baseUrl from @spikersoft/environment. Two sources of truth for "where is the backend" — they agree today, but a per-environment override of one silently breaks the other (this is the same URL-origin bug class as the closed #599).

Shape: media-URL building moves into BlogService (or a shared helper) using the same API_BASE_URL token; component templates consume a ready URL.

Epic #705. `BlogService` builds its API base from the `API_BASE_URL` injection token, while `blog-entry-component.getMediaUrl()` prepends `environment.baseUrl` from `@spikersoft/environment`. Two sources of truth for "where is the backend" — they agree today, but a per-environment override of one silently breaks the other (this is the same URL-origin bug class as the closed #599). **Shape:** media-URL building moves into `BlogService` (or a shared helper) using the same `API_BASE_URL` token; component templates consume a ready URL.
Sign in to join this conversation.