caddyserver / caddyserver/website

Wrong routing in navigating JSON structure when using breadcrumbs

Open Beginner friendly
#534 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Go to https://caddyserver.com/docs/json/apps/tls
  2. Click on apps in the breadcrumb navigation JSON Config Structureappstls
  3. Hover the {...} menu and click tls again again
  4. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.