[Bug]: A Markdown document opened through /file/ shows its title twice, under links meant for framework component docs
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
Línea de trabajo
Lee la ruta /file/<path:filepath> en web/blueprints/docs.py y la lógica de renderizado en web/templates/docs_detail.html. Comprueba cómo determina la ruta el título y cómo la plantilla renderiza html_content y sus enlaces. Se considera terminado cuando el título de un documento Markdown aparece una sola vez y no se muestran enlaces exclusivos de componentes para documentos sin una tarjeta de componente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Shell
- Estrellas
- 16
- Forks
- 6
- Merge medio
- 6 h 24 min
- PR fusionados (30 d)
- 5
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DimitriGeelen/agentic-engineering-framework
-
area:cli bug severity:low status:fixed-on-bleeding-edge triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DimitriGeelen/agentic-engineering-framework#100 · 5 comentarios ·
-
area:cli bug severity:medium status:fixed-on-bleeding-edge triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
DimitriGeelen/agentic-engineering-framework#97 · 5 comentarios ·
-
area:context bug severity:low status:accepted triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
DimitriGeelen/agentic-engineering-framework#96 · 3 comentarios ·
-
area:cli bug severity:medium status:accepted triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DimitriGeelen/agentic-engineering-framework#95 · 3 comentarios ·
-
area:watchtower bug severity:low status:released triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
DimitriGeelen/agentic-engineering-framework#94 · 4 comentarios ·
Todos los issues de DimitriGeelen/agentic-engineering-framework
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
kunchenguid/firstmate#7604 ·
Los mantenedores suelen responder en 1 día
-
product-to-storybook is skipped silently by npx skills add because its frontmatter is invalid YAMLAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 83/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
bug github_actions security
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
DewaldOosthuizen/tech-cheat-sheets-and-notes#388 ·
Los mantenedores suelen responder en 1 día
-
Link Checker ReportAbiertoautomated issue report
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
a2aproject/A2A#2376 ·
Los mantenedores suelen responder en 3 días