Repository navigation
Conversation
Deploying organicmaps with
|
| Latest commit: |
041098b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d925b128.organicmaps.pages.dev |
| Branch Preview URL: | https://fix-embedded-faq-local-links.organicmaps.pages.dev |
vng
reviewed
Nov 15, 2026
vng
left a comment
Member
There was a problem hiding this comment.
Review of 5c96fce
The fix is correct and nothing blocks the merge. I built the site with Zola 0.23.4 and compared the output with master: the only change to public/faq/embedded-faq/index.html is 26 hrefs (one per bundled language, English included) rewritten to #app-how-to-use-android-auto. The new browser test passes on this branch and fails on master's output. CI is green and there were no review threads to resolve.
Fix here (details inline)
- Template: the four inner
| safefilters are redundant; only the trailing one is needed. - Test: assert the whole invariant (every link is
#…,https://…ormailto:) instead of only../. - Test: the
documents/trackDocumenttracking is subsumed by thepage.url()assertion. - Docs:
CLAUDE.md,.github/copilot-instructions.mdand thecheck.ymlstep name still calltest:browserdonation-only.
Alternative considered: @/ links plus generic permalink-to-fragment mapping
I prototyped switching the 34 source files to @/faq/app/how-to-use-android-auto/index.LANG.md (the documented convention) and replacing each bundled page's permalink with its fragment in the template.
- Pros: no hard-coded slugs, the website loses the 301 hop through the alias, and any future cross-link between bundled answers is covered.
- Cons: it only resolved 11 of the 26 languages. Rendered hrefs are percent-encoded while
permalinkis not, so non-ASCII slugs do not match. It also needs about 5,000 extraget_pagelookups and special handling for…/#osm-notesuffixes.
The hard-coded approach in this PR is the better trade-off for now.
Pre-existing, optional separate PRs
- Other links still leave the bundle: each language has two absolute links to the bundled
advanced-map-editinganswer (one with#osm-note) that open the website instead of jumping to#editing-advanced-map-editing. They work online, unlike the relative ones fixed here.id="osm-note"also appears 26 times in the bundle, so that fragment cannot work in-bundle as it stands. - Typo:
content/faq/app/which-ios-and-android-versions-are-supported/index.de.md:20says "Oragnic Maps".
Generated by Claude Code
Resolve relative Android Auto URLs to the bundled answer at build time. Name the trusted replacement once and preserve its attribute quotes across supported Tera releases. Check every generated link destination and derive language coverage from the question titles independently of the links. Exercise local-file jumps with Chromium offline, update browser-suite documentation and CI labels, and correct the German product name. Signed-off-by: Alexander Borsuk <me@alex.bio>
biodranik
force-pushed
the
fix/embedded-faq-local-links
branch
from
November 16, 2026 00:09
5c96fce to
041098b
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The app-bundled FAQ contains relative Android Auto URLs that resolve to missing local files when opened from an app asset. Resolve the four URL variants to the existing bundled answer at build time, preserving published paths and fragments.
Name the trusted HTML replacement once. Its single
safemarker preserves attribute quotes on both Zola 0.23.4 and 0.23.6; the body filter also remains safe. Remove the duplicated call-site flags and redundant document-request bookkeeping.Check every generated link destination, allowing bundled fragments and supported absolute URLs. Derive the complete language inventory from question titles independently of the links under test, and scope checks to the requirements answer so additional Android Auto links elsewhere do not duplicate cases. Update browser-suite docs/CI labels and correct “Organic Maps” in the German requirements answer.
Validation:
../x/,./x/,x/and/faq/x/, and detect a missing German bundled link instead of skipping that language.Independent of #373. The two final branches combine without conflicts; the combined site builds and all 11 template tests, 27 tooling tests, 185 round-trip checks and 15 browser regressions pass. Additional whole-answer and shared-heading jumps, including localized OpenStreetMap-note targets, are handled in #373.
CI, Cloudflare preview and DCO pass on
041098b4. All review threads are resolved.