New page popup on the page index fills in the language as page name, so create makes nl/nl
Maintainer thường phản hồi trong vòng 1 ngày
Đá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
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ả
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PlanBCode/hypha
-
Impact: Medium Level: Easy Type: Bug Value: Users
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Low Level: Easy Type: Bug Value: Coders
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
PlanBCode/hypha#586 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Impact: Medium Level: Easy Type: Bug Usecase: De Stadsbron Value: Visitors
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
PlanBCode/hypha#522 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PlanBCode/hypha
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
awslabs/visual-asset-management-system#880 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
04 type: enhancement 33 needs: docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
plone/volto#8495 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: Workspace settings forms stay at 50% width on narrow screens and wrap text word by wordĐang mởpossible bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Mintplex-Labs/anything-llm#6889 ·
Maintainer thường phản hồi trong vòng 1 ngày