Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

New page popup on the page index fills in the language as page name, so create makes nl/nl

Abierto
#656 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@guidol-ive ya está trabajando en esto.

Desde el 28/10/2026.

  • #657 de @guidol-ive — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
php
Área
backend

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

Component: User interface Impact: Medium Level: Easy Type: Bug Value: Users

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PlanBCode/hypha

Todos los issues de PlanBCode/hypha

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.