Support relative links
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
从 issue 中显示的 Link 入口开始,跟踪其 "to" 值如何转换为导航。检查示例 URL 和相对目标,然后验证从 /some/long/unnested/route/foo 导航到 ../bar 是否会生成请求的路由,同时不破坏现有链接。
由索引模型根据 Issue 内容生成。
描述
Would love to see support for relative links in Wouter!
URL: https://www.example.com/some/long/unnested/route/foo
<Link to="../bar">Takes you to example.com/some/long/unnested/route/bar</Link>
I appreciate we can nest things but that's not always an appropriate option.
- 主要语言
- TypeScript
- 星标
- 7.9k
- 派生
- 193
- 平均合并
- 9 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
molefrog/wouter 的其他 Issue
-
Wouter double-decodes search params in `useSearchParams`, which can lead to �可能已有人在做 @priyas1672 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 3/5 1-2 天 新手友好度 52/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
Links using ~ do not respect `base`可能已有人在做 @molefrog 于 25 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 45/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
Northeastern-Electric-Racing/FinishLine#4660 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
mihaip/infinite-mac#475 ·
-
Let TypeScript accept an initial object in ReactiveDict可能已有人在做 @yograj-vijay-yadav 今天认领。 未关闭bug good first issue help wanted workshop
难度 2/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
marmelab/atomic-crm#401 ·
维护者通常 1 天内回复
-
account: profile
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 5 天内回复