Saving a page, header or footer turns a //host/path URL into /host/path, so the Creative Commons image in the footer gives 404
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- backend
Línea de trabajo
Read hypha_make_relative() in system/core/base.php and trace how wikify() uses it when saving site elements. Check the function’s behavior for URLs beginning with // and compare it with the root path removal described in the issue. Done means protocol-relative URLs remain unchanged after saving; the issue reports an open pull request, so the work is already underway.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Place. hypha_make_relative() in system/core/base.php (main 41482e9), called by wikify() when a page, the header, the footer or the menu is saved.
Problem. A protocol-relative URL (//host/path) loses its first slash on a site installed at /. The function removes the root path of the site (/) from every URL that starts with it, so //i.creativecommons.org/l/by-sa/3.0/88x31.png becomes /i.creativecommons.org/l/by-sa/3.0/88x31.png, a path on the site itself.
Effect. Sites installed with the installer of 2020 (145abcc) have the Creative Commons image in their footer as //i.creativecommons.org/.... After the footer is saved once in Settings, the image gives 404 on every page, and the browser console reports it. The same happens to any image or link written as //host/path in a page.
Reproduce.
- Log in as administrator on a site at
/. - In Settings → site elements, put
<img src="//i.creativecommons.org/l/by-sa/3.0/88x31.png">in the footer and save. data/hypha.xmlnow holdssrc="/i.creativecommons.org/l/by-sa/3.0/88x31.png"; the page shows a broken image.
Fix. Return a URL that starts with // unchanged before the root path is removed. A footer that was already changed has to be corrected once by hand, for example to https://i.creativecommons.org/l/by-sa/3.0/88x31.png.
A pull request follows.
🤖 Generated with Claude Code
- Lenguaje dominante
- JavaScript
- Estrellas
- 5
- Forks
- 9
- Merge medio
- 18 h 7 min
- PR fusionados (30 d)
- 11
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 PlanBCode/hypha
-
Component: User interface Impact: Low Level: Easy Pagetype: Peer reviewed article Type: Bug Value: Visitors
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Impact: Medium Level: Easy Type: Bug Value: Users
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Impact: Low Level: Easy Type: Bug Value: Coders
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
PlanBCode/hypha#586 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de PlanBCode/hypha
Issues similares
-
[guide] AGENTS.md claims the coverage gate, e2e and full lint run on every PR after ADR 0011 focused validationPosiblemente ocupada @hivecommons-hive la tomó hoy. Abiertoagent/guide documentation hive/claimed-by-guide stage/040-covered-by-pr
Dificultad 2/5 1-3 horas Aptitud para principiantes 81/100
cncf/endusers#2006 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
check:passed feeds:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 4 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
all-contributors/cli#587 ·
Los mantenedores suelen responder en 1 día
-
RGAA5
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 8 días
-
feedback simulation workshop
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
githubnext/gh-aw-workshop#5157 ·
Los mantenedores suelen responder en 1 día