New page popup on the page index fills in the language as page name, so create makes nl/nl
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start with addNewPageRoutine() in system/core/pages.php and inspect how it handles the first two path parts. Check the existing behavior for index/nl and nl/Some_page; done means the popup leaves the page name empty for the former and prefills Some_page for the latter. A linked pull request is already open.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
On the page index (index/nl), the popup for a new page fills in nl as the name of the page. Whoever clicks "create" without looking makes a page named nl, at nl/nl, instead of the page they meant. With the new editor of #520 the title of the article becomes "nl" as well.
Cause
addNewPageRoutine() in system/core/pages.php prefills the second part of the path when no page exists for the first two parts:
if (count($query) >= 2 && !hypha_getPage($query[0], $query[1]))
$pagename = $query[1];
That is meant for nl/Some_page, a page that does not exist yet. But on index/nl, tag/… or settings/…, the first part is not a language, so the second part is no page name.
Expected
Prefill only when the first part of the path is a language: empty on index/nl, and Some_page on nl/Some_page.
- 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
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wazuh/wazuh-documentation#10584 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
InukaAsith/TwinDesk#84 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Graphify-Labs/graphify#4860 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
CommandCodeAI/command-code#1088 ·
Los mantenedores suelen responder en 2 días