facebook / facebook/docusaurus

File / Folder Names that contain parentheses do not resolve

Đang mở
#5,418 16 bình luận 1 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
66.2k
Fork
10k
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
52

Mô tả

## 🐛 Bug Report

### Prerequisites

- [x] I'm using the latest version of Docusaurus.
- [X] I have tried the `npm run clear` or `yarn clear` command.
- [X] I have tried `rm -rf node_modules yarn.lock package-lock.json` and re-installing packages.
- [X] I have tried creating a repro with https://new.docusaurus.io
- [X] I have read the console error message carefully (if applicable)

### Description

Parentheses are not allowed in a file / folder name. When a file has parentheses the file still shows up in the sidebar but when clicked shows "page not found".

## Steps to reproduce

1. Create a file or folder that has `(` or `)` in the name.
2. Go to that file in the sidebar.

CodeSandbox doesn't allow the special character... but stackblitz does. Demo:

https://stackblitz.com/edit/github-eranrw?file=docs/another(1).md

## Expected behavior

I would expect it to be able to resolve the special character.

## Actual behavior

The page did not resolve and seems to be considered a broken markdown link.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.