Images broken on German version of openlibrary.org/tour
Problem
The German internationalized version of openlibrary.org/tour does not render images correctly.
openlibrary.org/tour
Reproducing the bug
- Go to ...openlibrary.org/tour
- Do ...observe broken images
- Expected behavior: images should render
- Actual behavior: images do not render
Context
- Browser (Chrome, Safari, Firefox, etc):
- OS (Windows, Mac, etc):
- Logged in (Y/N):
- Environment (prod, dev, local): prod
Breakdown
Implementation Details (for maintainers)
Requirements Checklist
- [ ]
Related files
Stakeholders
Instructions for Contributors
- Please run these commands to ensure your repository is up to date before creating a new branch to work on this issue and each time after pushing code to Github, because the pre-commit bot may add commits to your PRs upstream.
⚠️ Contributors, this issue will be ready to work on once:
- [ ] Needs: Triage — maintainers will add
Priority: *andLead: @*to replaceNeeds: TriageandNeeds: Lead - [ ] Needs: Investigation — root cause is unknown: broken images could be due to incorrect paths stored in the German tour page's infogami database content, a locale-URL-prefix issue, or a template rendering bug
Context
/tourpages are served from infogami database objects (/type/page), not static templates. Image paths in tour page content are stored directly in the HTML of those DB records with no locale-aware path substitution.- A search of
openlibrary/plugins/andopenlibrary/templates/found no code that rewrites or resolves image paths per locale for tour pages. - The only template referencing tour navigation is
openlibrary/macros/Subnavigation.html(navigation links only, no image handling). - Two prior tour-area content fixes (PR #3837, PR #5363) both required direct content edits rather than code changes, consistent with tour content living in the DB.
Issue Assessment
Open questions:
- What is the exact broken URL — is it
openlibrary.org/tour?lang=de, a separate/languages/de/tourpath, or something else? The repro step says "Go to openlibrary.org/tour" but does not specify how to trigger the German locale. - Do other non-English tour pages (e.g., French, Spanish) also show broken images, or is this German-specific?
- Were the tour page images recently changed or moved? If so, was the German infogami page content updated at the same time?
Action items:
- [ ] Provide the exact URL where images are broken
- [ ] Fill in browser, OS, and login state in the Context section
- [ ] Confirm whether other language tour pages are affected (narrows root cause to German-specific DB content vs. a systemic rendering issue)
- [ ] Compare image paths in the German tour page's source (View Source at the broken URL) against current static asset paths — this will determine whether this is a DB content fix or a code fix
Full triage checklist (maintainers / Pam)
- [ ] Triage — correct labels applied or removed:
Needs: Investigationadded;Needs: Staff / Internal,Good First Issue,Blocked,Blockerevaluated and not applicable at this stage - [ ] Problem / opportunity — problem is clear and audience identified (German-locale users of
/tour), but root cause is not yet established - [x] Scope — scoped to a single page and locale
- [ ] Justification — no urgency or impact scale provided
- [ ] Success & testing criteria — implied (images render on German tour page) but no explicit test plan
- [ ] Proposal & breakdown — no implementation plan; investigation required first
- [ ] If bug: environment & repro steps — browser and OS left blank; exact locale-triggering URL not specified
- [ ] Risks, concerns, open questions — none identified in the issue; investigation may reveal broader locale impact
- [x] Pam context — tour page architecture confirmed (infogami DB objects); no prior duplicate issue found; related merged PRs reviewed
- [x] References — screenshot provided
[!NOTE] This comment was automatically generated by Pam, Open Library's Project AI Manager, on behalf of @mekarpeles. Pam is designed to provide status visibility, perform basic project management functions and relevant codebase research, and provide actionable feedback so contributors aren't left waiting.
I'm not sure what a non-technical bug reporter is meant to do with this wall-o-text.
Provide the exact URL where images are broken
It's given in the bug report. Visit it with your language set to Deutsch.
but does not specify how to trigger the German locale.
That's obvious. It's at the top of every page.
Fill in browser, OS, and login state in the Context section
Neither are relevant for this bug.
The broken links are things of the form https://openlibrary.org/static/images/arrow.red.png Visiting https://openlibrary.org/static/images/ shows that all the files have a modification date of April 29, which seems like a smoking gun to me.
"Hi @mekarpeles and @tfmorris, I'd like to claim this issue!
I investigated this and found the root cause. The German /de/tour Infogami page is still using the HTML from an ancient version of the tour page. It is trying to load images like <img src="/static/tour/autocomplete.conrad.png">, but the static/tour/ directory doesn't exist in the codebase anymore.
Furthermore, the English /tour page doesn't even have images anymore (it was updated to use a video).
The Fix: The German Infogami DB page just needs to be synced with the modern English /tour page HTML (with translated text) to remove the ghost image tags. Since this is an Infogami DB fix and not a codebase PR, how would you prefer I submit the updated German HTML for an admin to apply?"
"Hi @mekarpeles and @tfmorris, I'd like to claim this issue!
I investigated this and found the root cause. The German /de/tour Infogami page is still using the HTML from an ancient version of the tour page. It is trying to load images like
<img src="/static/tour/autocomplete.conrad.png">, but the static/tour/ directory doesn't exist in the codebase anymore.Furthermore, the English /tour page doesn't even have images anymore (it was updated to use a video).
The Fix: The German Infogami DB page just needs to be synced with the modern English /tour page HTML (with translated text) to remove the ghost image tags. Since this is an Infogami DB fix and not a codebase PR, how would you prefer I submit the updated German HTML for an admin to apply?"
Just a quick update : I checked the other languages (like Spanish) and they are not affected. They match the modern English page (no images). This bug is German-specific because only the German DB page was left behind with the old HTML!
@shaiksahilrizwan Thanks for the investigation. To clarify, are you a native German speaker? If not, it's probably not an appropriate task for you.
A native German speaker should update the page to parallel the updates which were made to the Spanish page here and bring it in line with the current English page.
https://openlibrary.org/tour.es?_compare=Comparer&b=6&a=5&m=diff
as an aside, https://openlibrary.org/tour.fr is missing, so the English page is served. If this page is considered important, someone should probably catalog the translations which are missing.
Thanks for the clarification! Since fixing this requires updating localized content and accurate German translation (as well as admin access to apply the changes), I’ll step back from actively working on this issue. Happy to assist with any supporting work (e.g., preparing updated HTML structure or documenting similar cases) if needed.
@tfmorris To clarify, do you mean that the German page should be reduced to the English page, but translated? Currently the German page is much longer and has much more content. If It's just the images that need fixing (although they don't appear in the English page), and the English page being translated into German for this page, I could do this. (I do not speak German natively, but would have help from a native German and English speaker)
I would assume that all the additional sections in the German Page are a replacement for the English tour video, so could keep them in, as there is a lack of German video, if that would be best.
Hi, I'd like to work on this issue!
My understanding of the problem:
The German version of the /tour page (accessed via ?lang=de) is not rendering images correctly. The tour page contains several images under /static/tour/ (e.g. book.top.nc.png, edit.button.png, book.whole.png, etc.) that appear broken when the page is viewed in German, while they display correctly in the English version.
My proposed approach:
- Investigate the tour page template to understand how images are referenced
- Compare the English and German versions to identify where the rendering breaks down — likely an issue with how the i18n/localization layer handles static asset paths, or a template condition that differs by language
- Fix the root cause and verify images display correctly on the German tour page locally
Files I plan to look at:
openlibrary/macros/Subnavigation.html(references/tourroutes)openlibrary/i18n/de/messages.po(German translations)- Any templates rendering the
/tourpage content and its images
I have the local dev environment set up and running. Happy to provide more detail if needed!
Hi all — following up on @shaiksahilrizwan's investigation, I did an independent check against the current codebase and live site and can confirm the same conclusion:
Confirmed: this is DB content, not a code bug.
- Searched the full
openlibrary/tree fortour(case-insensitive): the only match isopenlibrary/macros/Subnavigation.html, which renders the/tournav links only — no template or plugin resolves/rewrites image paths for tour page bodies. static/tour/does not exist anywhere in the repo. The broken<img src="/static/tour/autocomplete.conrad.png">-style tags on/tour.dereference a directory that's gone.- Comparing the live pages:
/tour(English) and/tour.es(Spanish) were both migrated to the video-based layout (embeddedarchive.org/embed/openlibrary-tour-2020player), replacing the old screenshot walkthrough sections./tour.deis the one locale still on the pre-migration HTML with the now-dead image tags — confirmed via/tour.es?_compare=Comparer&b=6&a=5&m=diff, which shows the Spanish page's "Características" section being replaced by the video embed in exactly the way/tour.destill needs. /tour.deshows a liveEdit this pagelink (/tour.de?m=edit), confirming the fix path is Infogami's own page editor, not a git PR — there's no file in this repository to change.
Per @tfmorris's point above, I'm not a native German speaker, so I don't think I'm the right person to author the translation itself. But I'm happy to prepare the mechanical part: draft the corrected /tour.de wikitext/HTML (mirroring the current /tour / /tour.es structure — video embed + translated feature bullets, with the dead <img> tags removed) as a starting point, for a native German speaker or a maintainer with edit/admin access to review and apply. Let me know if that's useful and I'll put together a draft.
I went ahead and used AI to translate based on the latest English page. If any native German speaker would like to improve the translation please let us know!