Skip to content

♻️[Refactor] Remove redundant tools URL namespace - #95

Merged
maruson08 merged 1 commit into
v2.2from
chore/url-namespace-cleanup
Sep 28, 2026
Merged

maruson08 merged 1 commit into
v2.2from
chore/url-namespace-cleanup

Conversation

@maruson08

Copy link
Copy Markdown
Member

Closes #94.

The public site currently inherits /tools/ from its source directory because the Cloudflare deployment copies the repository tree directly. This change stages a manifest-driven dist/ artifact so canonical tool URLs live at /<category>/<tool>/, while every former /tools/* URL returns a one-hop 308 redirect to its root-level destination.

The existing /privacy/ policy and Privacy category would collide after removing the prefix, so /privacy/ now preserves the policy and includes the metadata-tool links. Canonical and Open Graph URLs, internal navigation, sitemap entries, browser smoke coverage, and deployment validation use the new namespace. OCR worker, core/WASM, English and Korean traineddata, and all runtime dependencies remain same-origin with the existing CSP and privacy boundaries.

Validation:

  • npm ci --ignore-scripts
  • npm run prepare:ocr
  • npm test
  • npm run build
  • node scripts/validate-build.mjs
  • node tests/ocr-smoke.test.mjs
  • real-browser route, redirect, six-locale, theme, and OCR smoke QA
  • git diff --check origin/v2.2...HEAD

@maruson08
maruson08 merged commit 4cc7093 into v2.2 Sep 28, 2026
1 check passed
@maruson08 maruson08 mentioned this pull request Sep 28, 2026
@maruson08
maruson08 deleted the chore/url-namespace-cleanup branch September 28, 2026 09:47
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.

1 participant