metube/ui
pacnpal 2598f80835 fix: blank PUBLIC_HOST_AUDIO_URL no longer breaks audio download links
A present-but-empty PUBLIC_HOST_AUDIO_URL (e.g. `PUBLIC_HOST_AUDIO_URL=` in a
compose file) bypassed the default and stayed blank, so the UI built
root-relative audio links like `app.url/song.mp3` that 404'd, while video links
kept working off PUBLIC_HOST_URL.

Backend: a blank PUBLIC_HOST_AUDIO_URL now inherits PUBLIC_HOST_URL, matching the
README ("same as PUBLIC_HOST_URL but for audio downloads"). Both blank still
stays blank, so intentional root serving is preserved.

Frontend: buildDownloadLink and buildChapterDownloadLink fall back to
PUBLIC_HOST_URL when the audio host is blank.

Added backend and UI regression tests, both verified red against the unfixed
code.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 10:55:10 -04:00
..
src fix: blank PUBLIC_HOST_AUDIO_URL no longer breaks audio download links 2026-06-16 10:55:10 -04:00
.editorconfig upgrade dependencies (migrate to Angular 10) 2021-02-02 21:09:28 +02:00
angular.json code review fixes 2026-03-15 20:53:13 +02:00
eslint.config.js feat(frontend): modernize Angular app 2025-12-15 01:56:47 +01:00
ngsw-config.json exclude index.html from service worker 2024-12-08 18:24:40 +06:00
package.json upgrade dependencies 2026-06-12 12:45:38 +03:00
pnpm-lock.yaml upgrade dependencies 2026-06-12 12:45:38 +03:00
pnpm-workspace.yaml fix pnpm build 2026-04-12 23:07:22 +03:00
tsconfig.app.json feat(frontend): modernize Angular app 2025-12-15 01:56:47 +01:00
tsconfig.json feat(frontend): modernize Angular app 2025-12-15 01:56:47 +01:00
tsconfig.spec.json feat(frontend): modernize Angular app 2025-12-15 01:56:47 +01:00