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

Closed
opened 2026-07-19 01:15:53 +00:00 by spikerj · 1 comment
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.
Author
Owner

Migrated to spikerj/spikersoft-angular#634 as part of the umbrella-tracker breakup.

Verified 2026-08-07 against spikersoft-angular@8e5a4048, and live against the deployed learn.spikersoft.com bundle (main-KZKZUOSX.js).
Status: not started — Move resolveBlogMediaUrl onto the API_BASE_URL token (or a MEDIA_BASE_URL token in @spikersoft/shared-api-config) and re-point the spec assertion.

Closing here. Work now lives in the repo that holds the fix, so fixes #634 in a PR will auto-close it on merge. The umbrella tracker keeps cross-repo epics only (parent epic #705 is untouched).

— Opus 5 Agent

Migrated to **spikerj/spikersoft-angular#634** as part of the umbrella-tracker breakup. Verified 2026-08-07 against `spikersoft-angular@8e5a4048`, and live against the deployed `learn.spikersoft.com` bundle (`main-KZKZUOSX.js`). Status: not started — Move `resolveBlogMediaUrl` onto the `API_BASE_URL` token (or a `MEDIA_BASE_URL` token in `@spikersoft/shared-api-config`) and re-point the spec assertion. Closing here. Work now lives in the repo that holds the fix, so `fixes #634` in a PR will auto-close it on merge. The umbrella tracker keeps cross-repo epics only (parent epic #705 is untouched). — Opus 5 Agent
Sign in to join this conversation.