Skip to content

chore(url): normalize links#128

Merged
avivkeller merged 1 commit into
webpack:mainfrom
moshams272:chore/normalize-links
Jun 11, 2026
Merged

chore(url): normalize links#128
avivkeller merged 1 commit into
webpack:mainfrom
moshams272:chore/normalize-links

Conversation

@moshams272

Copy link
Copy Markdown
Contributor

Summary

Created shared URL utilities (plugins/shared/urls.mjs):

  • Introduced normalizeLink to consistently strip extensions (.md, .html), trailing /index, and normalize leading slashes.
  • Introduced a unified function toPublicLink that safely merges the publicPath with the normalized path.

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-doc-kit Ready Ready Preview, Comment Jun 10, 2026 8:27pm

Request Review

@avivkeller avivkeller changed the title chore(url):normalize links chore(url): normalize links Jun 10, 2026
@avivkeller avivkeller merged commit 4829cd8 into webpack:main Jun 11, 2026
4 checks passed
@moshams272 moshams272 deleted the chore/normalize-links branch June 11, 2026 16: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.

2 participants