project-nomad/admin/database
Chris Sherwood eef5b6cd37 fix(translate): forward upstream redirects instead of following them
urlopen() follows redirects silently. Kiwix answers a book root such as
/content/<book> with a 302 to the ZIM's main page, so the proxy served
that page's HTML at the original, shallower URL. Every relative link and
stylesheet then resolved one directory too high: the page lost its
styling and every article link 404'd (e.g. atenolol/ -> /content/atenolol/).
Kiwix's /random is a 302 too and broke the same way.

Use an opener that returns 3xx to the browser like any other non-200
response, and keep an absolute Location on this origin rather than the
upstream container name.

Bumps the catalog image to 0.1.1.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 14:19:27 -07:00
..
migrations fix(db): allow 'dataset' in installed_resources.resource_type 2026-09-29 15:54:41 -07:00
seeders fix(translate): forward upstream redirects instead of following them 2026-10-05 14:19:27 -07:00