Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#656 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@guidol-ive đang làm issue này rồi.

Từ ngày 28/10/2026.

  • #657 của @guidol-ive — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
5
Fork
9
Merge trung bình
18 giờ 7 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PlanBCode/hypha

Tất cả issue của PlanBCode/hypha

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.