caddyserver / caddyserver/website
Wrong routing in navigating JSON structure when using breadcrumbs
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 227
- Forks
- 213
- Avg merge
- 3h 52m
- Merged PRs (30d)
- 1
Description
When navigating through the JSON configuration structure one gets routed wrong when clicking through it using the {...} menus and breadcrumbs. An example is https://caddyserver.com/docs/json/apps//tls (notice the double slash, leading to empty 'Description' and 'Field List' Sections).
How to reproduce
- Go to https://caddyserver.com/docs/json/apps/tls
- Click on
appsin the breadcrumb navigationJSON Config Structure›apps›tls - Hover the
{...}menu and clicktlsagain again - You will end up in
https://caddyserver.com/docs/json/apps//tls
Suspected Reason is that the breadcrumbs lead to the destination with a trailing slush, while the {...} menu items add a prefixed slash leading to double slashes.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the breadcrumb and {...} menu navigation from the JSON configuration page, especially the transition through apps to tls. Trace how those links assemble /docs/json/apps/tls; done means navigation no longer produces /apps//tls and the Description and Field List sections load correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100