Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#656 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@guidol-ive ci sta già lavorando.

Dal 28/10/2026.

  • #657 di @guidol-ive — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
php
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
5
Fork
9
Merge medio
18h 7m
PR unite (30g)
11

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PlanBCode/hypha

Tutte le issue di PlanBCode/hypha

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.