[Bug]: A Markdown document opened through /file/ shows its title twice, under links meant for framework component docs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
Direzione di ricerca
Leggi la route /file/<path:filepath> in web/blueprints/docs.py e la logica di rendering in web/templates/docs_detail.html. Controlla come la route determina il titolo e come il template visualizza html_content e i suoi link. Il lavoro è completato quando il titolo di un documento Markdown appare una sola volta e i link esclusivi dei componenti non vengono mostrati per i documenti senza una scheda del componente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Description
Any project document opened in Watchtower through /file/<path>.md shows its title twice, with two links between the copies that do not apply to it.
Cause, read in the code (1.8.6):
web/blueprints/docs.py, route/file/<path:filepath>, lines 245 to 252: the page title is taken from the first line of the file that starts with#.web/templates/docs_detail.html: line 2 prints<h1>{{ page_title }}</h1>, lines 4 and 6 print "Back to Component Docs" and "View in Fabric", and line 11 prints{{ html_content | safe }}, the whole document rendered from Markdown, first heading included.
So every Markdown file that starts with a level-1 heading, the normal shape of a document, shows that heading twice. The "View in Fabric" link goes to /fabric/component/<file stem>, which answers "Not Found" for a document that has no component card.
Steps to Reproduce
- Put a Markdown file that starts with
# Some titleunderdocs/reports/in a consumer project. - Open
/file/docs/reports/<file>.mdin Watchtower. - Click "View in Fabric".
Expected Behavior
The title appears once. The two links appear only for a file that has a Fabric component card; a project document links back to the task that references it, or to nothing.
Actual Behavior
← Back to Component Docs | View in FabricThe served page contains two <h1> elements with the same text. "View in Fabric" opens a page titled "Not Found".
fw doctor output
AI Agent
Claude Code
Operating System
Linux
Additional Context
Version: 1.8.6 (1ea10441f), vendored consumer. First seen on 1.8.3; the two files are byte-identical between the versions. Checked again on a served page of 1.8.6.
It cannot be fixed on the project side: removing the level-1 heading makes the route pick the first ## heading as page title, and leaves the document without a title once exported; a local patch of the template is overwritten by fw upgrade.
Suggestions:
- When the title comes from the document's first heading, drop that heading from
html_contentbefore rendering, or do not printpage_titlein the page header. - Show "Back to Component Docs" and "View in Fabric" only when the file has a Fabric component card.
- Lingua principale
- Shell
- Stelle
- 16
- Fork
- 6
- Merge medio
- 6h 24m
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DimitriGeelen/agentic-engineering-framework
-
area:cli bug severity:low status:fixed-on-bleeding-edge triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DimitriGeelen/agentic-engineering-framework#100 · 5 commenti ·
-
area:cli bug severity:medium status:fixed-on-bleeding-edge triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DimitriGeelen/agentic-engineering-framework#97 · 5 commenti ·
-
area:context bug severity:low status:accepted triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DimitriGeelen/agentic-engineering-framework#96 · 3 commenti ·
-
area:cli bug severity:medium status:accepted triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DimitriGeelen/agentic-engineering-framework#95 · 3 commenti ·
-
area:watchtower bug severity:low status:released triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
DimitriGeelen/agentic-engineering-framework#94 · 4 commenti ·
Tutte le issue di DimitriGeelen/agentic-engineering-framework
Issue simili
-
e2e-failure ready-to-code
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
redhat-developer/rhdh-plugin-export-overlays#4485 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
maintenance
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
fix(session-flow): redact.py misses bare sk-ant-oat01- tokens and stateless ghs_ tokens with dotsApertaneeds-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
melodic-software/claude-code-plugins#9026 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug raised-by:verifier
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
medici-finance/assay#4008 ·
I maintainer di solito rispondono entro 1 giorno
-
bug: `curl NAME` exports an unquoted, uninterpolated command that is not runnableForse già presa @dannyward630 l’ha presa oggi. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
yunaremaia/git-api#61 ·
I maintainer di solito rispondono entro 1 giorno