p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

Fix #878 : prevent trailing slashes on absolute Wikipedia URLs

Open reshma045 opened this issue 4 months ago • 3 comments

Summary: This PR fixes the issue where absolute Wikipedia URLs in the generated reference docs had unwanted trailing slashes.

Closes #878

What was done:

  1. Modified src/scripts/builders/reference.ts to add a check preventing trailing slashes on absolute URLs (URLs starting with http)
  2. Ran npm run build:reference to regenerate the reference documentation files
  3. Verified that Wikipedia links no longer contain trailing slashes and work correctly
  4. Verified that no changes were made to package-lock.json

Thanks to the maintainers for the guidance!

reshma045 avatar Aug 12 '25 07:08 reshma045