[Bug] /affiliations and 404 error handler serve raw unrendered Django/Jinja template source code
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 1/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- django, html
- Ambito
- backend
Direzione di ricerca
Inspect the /affiliations route and the production 404 handler, along with the affiliations.html and 404.html templates mentioned in the report. Check how each response is served and rendered; verify /affiliations displays rendered content and invalid routes return a rendered 404. A linked pull request (#89) is already open, so this work appears to be underway.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
When visiting the /affiliations page (linked in the site footer under ABOUT & LEGAL) or triggering a 404 error on any invalid route (such as /sitemap.xml or /some-nonexistent-page), the web server serves the raw, unrendered template source code rather than executing the Django rendering pipeline.
Visitors see literal bracketed template tags ({% extends "base.html" %}, {% block title %}, {{ requested_path }}), unstyled typography, and no navigation header or footer.
Confirmation of Related 404 Behavior
As suspected, this issue affects both the public /affiliations route and the production 404 error handler:
https://alphaonelabs.com/affiliations: ReturnsHTTP 200 OK, but the body is the unrendered templateaffiliations.html.https://alphaonelabs.com/sitemap.xml: ReturnsHTTP 404 Not Found, but the body is the unrendered template404.html(displaying literal{{ requested_path }}).https://alphaonelabs.com/any-invalid-url: ReturnsHTTP 404 Not Foundwith the exact same unrendered template syntax.
Steps to Reproduce
Case A: The /affiliations Route
- Navigate to https://alphaonelabs.com/.
- Scroll to the footer under ABOUT & LEGAL and click Affiliations (or directly open https://alphaonelabs.com/affiliations).
- Observe the top and bottom of the viewport.
Case B: The 404 Error Handler
- Navigate to https://alphaonelabs.com/sitemap.xml or any non-existent path like
https://alphaonelabs.com/nonexistent-test-page. - Inspect the rendered response.
Expected vs Actual Behavior
For /affiliations:
- Expected: A fully rendered HTML document extending
base.html, complete with brand styling, standard navigation header (site-navbar), dark mode styles, and the footer. - Actual: The raw template source is served as plain text/HTML (
HTTP 200 OK), displaying:{% extends "base.html" %} {% block title %}Affiliations - Alpha One Labs{% endblock %} {% block meta_description %}Organizations and initiatives affiliated with Alpha One Labs.{% endblock %} {% block body_class %}min-h-screen flex flex-col bg-white text-gray-900 dark:bg-black dark:text-gray-100 overflow-x-hidden{% endblock %} {% block content %} ... {% endblock %}
- Lingua principale
- HTML
- Stelle
- 3
- Fork
- 28
- Merge medio
- 17h 41m
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né 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 alphaonelabs/learn
-
Active Navigation State Is Not Highlighted in the NavbarForse già presa @Taha254511 l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
alphaonelabs/learn#91 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Add Google Sign-In AuthenticationForse già presa @gopikrishna-20 l’ha presa 1 giorno fa. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
alphaonelabs/learn#126 ·
I maintainer di solito rispondono entro 1 giorno
-
feat(classroom): add keyboard shortcuts and clean up interaction controlsForse già presa @rishavvrajj l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 42/100
alphaonelabs/learn#124 ·
I maintainer di solito rispondono entro 1 giorno
-
feat(classroom): add seated arrow-key desk navigation and improve seating user experienceForse già presa @rishavvrajj l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
alphaonelabs/learn#121 ·
I maintainer di solito rispondono entro 1 giorno
-
# Feature: Add Notification Deletion featureForse già presa @gopikrishna-20 l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 22/100
alphaonelabs/learn#120 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di alphaonelabs/learn
Issue simili
-
enhancement Improvement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
zowe/zowe-client-java-sdk#647 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
OpenPrinting/cups#1772 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
voidzero-dev/void#478 ·
I maintainer di solito rispondono entro 1 giorno