Skip to content

fix(cli): remove snyk-cli/snyk-cli double-nested GitBook links (84 files) - #1642

Merged
VeronicaSnyk merged 1 commit into
mainfrom
fix/remove-double-nested-snyk-cli-links
Aug 13, 2026
Merged

fix(cli): remove snyk-cli/snyk-cli double-nested GitBook links (84 files)#1642
VeronicaSnyk merged 1 commit into
mainfrom
fix/remove-double-nested-snyk-cli-links

Conversation

@esabou-snyk

@esabou-snyk esabou-snyk commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixes 155 cross-space GitBook internal links that contained a double snyk-cli/snyk-cli path segment, producing broken public URLs like https://docs.snyk.io/developer-tools/snyk-cli/snyk-cli/commands/secrets-test
  • All affected links had the form app.gitbook.com/s/IEEjSXQQu36y0vmFV8zf/snyk-cli/snyk-cli/…; corrected to app.gitbook.com/s/IEEjSXQQu36y0vmFV8zf/snyk-cli/…
  • 84 files across agent-security/, discover-snyk/, platform-administration/, scan-fix-and-prevent/, and snyk-data-and-governance/

Root cause: A GitBook Git Sync commit from June 2026 auto-generated cross-space href attributes with an extra snyk-cli/ path segment. Prior fix PRs (#1609, #1611, #1612) corrected docs.snyk.io-format URLs but left the app.gitbook.com/s/… internal links untouched. This PR cleans up all remaining instances.

discover-snyk/whats-new.md intentionally excluded (auto-generated file).

Test plan

  • Verify grep -r "IEEjSXQQu36y0vmFV8zf/snyk-cli/snyk-cli" --include="*.md" returns only whats-new.md
  • Spot-check a few links in GitBook preview to confirm they resolve correctly (e.g. the Secrets test command page)

🤖 Generated with Claude Code


Note

Low Risk
Documentation-only URL corrections with no runtime, auth, or build logic changes; risk is limited to occasional missed links if any instances remain outside the edited files.

Overview
Fixes broken cross-space GitBook links that pointed at paths like …/snyk-cli/snyk-cli/… instead of …/snyk-cli/…. Those URLs broke navigation to Snyk CLI topics (install, auth, commands, scan guides, and related pages).

The updates are link-only: each change drops one duplicate snyk-cli/ segment from app.gitbook.com/s/IEEjSXQQu36y0vmFV8zf/snyk-cli/snyk-cli/… hrefs. 84 files are touched across agent-security Studio guides, discover-snyk implementation and language docs, platform administration, and scan-fix-and-prevent content.

discover-snyk/whats-new.md is intentionally left unchanged (auto-generated). Remaining double-nested links should appear only there after this PR.

Reviewed by Cursor Bugbot for commit e8f4c8a. Bugbot is set up for automated code reviews on this repo. Configure here.

Fixes 155 cross-space GitBook links of the form
  app.gitbook.com/s/IEEjSXQQu36y0vmFV8zf/snyk-cli/snyk-cli/...
which produced the broken public URL
  https://docs.snyk.io/developer-tools/snyk-cli/snyk-cli/...

Root cause: a GitBook Git Sync commit from June 2026 generated
cross-space href attributes with an extra snyk-cli/ path segment.
Prior fix PRs (#1609, #1611, #1612) cleaned up docs.snyk.io-format
URLs but left the app.gitbook.com/s/... internal links untouched.
This pass catches all remaining instances across 84 files in
agent-security, discover-snyk, platform-administration,
scan-fix-and-prevent, and snyk-data-and-governance.

Excludes discover-snyk/whats-new.md (auto-generated).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@esabou-snyk
esabou-snyk requested a review from a team as a code owner August 13, 2026 14:49
@snyk-io

snyk-io Bot commented Aug 13, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@VeronicaSnyk
VeronicaSnyk merged commit 56e4cb5 into main Aug 13, 2026
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants