⚡ Bolt: reduce HTTP redirect latency with canonical URLs#89
Conversation
Updated non-canonical Contributor Covenant URLs in Code of Conduct files to use trailing slashes and the canonical path, avoiding unnecessary HTTP redirects and reducing round-trip latency. Co-authored-by: soktri3 <170663878+soktri3@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
There was a problem hiding this comment.
Code Review
This pull request updates the Contributor Covenant URLs in both CODE_OF_CONDUCT.md and profile/CODE_OF_CONDUCT.md to use trailing slashes instead of .html extensions. The reviewer pointed out that the trailing period after the new URLs might be incorrectly parsed as part of the link by some Markdown parsers, and suggested wrapping the URLs in angle brackets to prevent broken links.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
| version 2.0, available at | ||
| https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. | ||
| https://www.contributor-covenant.org/version/2/0/code_of_conduct/. |
There was a problem hiding this comment.
The trailing period immediately following the URL (/code_of_conduct/.) might be parsed as part of the URL by some Markdown parsers, leading to broken links or 404 errors. Wrapping the URL in angle brackets <...> ensures that the trailing period is correctly treated as punctuation rather than part of the URL path.
| https://www.contributor-covenant.org/version/2/0/code_of_conduct/. | |
| <https://www.contributor-covenant.org/version/2/0/code_of_conduct/>. |
| This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
| version 2.0, available at | ||
| https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. | ||
| https://www.contributor-covenant.org/version/2/0/code_of_conduct/. |
There was a problem hiding this comment.
The trailing period immediately following the URL (/code_of_conduct/.) might be parsed as part of the URL by some Markdown parsers, leading to broken links or 404 errors. Wrapping the URL in angle brackets <...> ensures that the trailing period is correctly treated as punctuation rather than part of the URL path.
| https://www.contributor-covenant.org/version/2/0/code_of_conduct/. | |
| <https://www.contributor-covenant.org/version/2/0/code_of_conduct/>. |
💡 What:
Updated non-canonical URLs pointing to the Contributor Covenant inside
CODE_OF_CONDUCT.mdandprofile/CODE_OF_CONDUCT.mdto use their canonical trailing-slash forms:https://www.contributor-covenant.org/version/2/0/code_of_conduct.html->https://www.contributor-covenant.org/version/2/0/code_of_conduct/https://www.contributor-covenant.org->https://www.contributor-covenant.org/🎯 Why:
Visiting non-canonical URLs triggers an HTTP 301 Redirect from the destination server. In a documentation-only or profile-only repository context, this incurs an extra network round-trip (RTT) for users seeking the Code of Conduct or homepage. Using canonical URLs eliminates this extra redirect, significantly speeding up navigation under high-latency connections.
📊 Impact:
🔬 Measurement:
Run the following curl command to observe that the updated URLs directly return HTTP 200 OK without redirects:
curl -Is https://www.contributor-covenant.org/version/2/0/code_of_conduct/ | grep HTTPcurl -Is https://www.contributor-covenant.org/ | grep HTTPPR created automatically by Jules for task 10046536257443711137 started by @soktri3