Skip to content

fix: prepend https to URLs starting with www - #107

Merged
hiteshkava merged 1 commit into
release-ulmofrom
hitesh/LP-931
Jul 31, 2026
Merged

fix: prepend https to URLs starting with www#107
hiteshkava merged 1 commit into
release-ulmofrom
hitesh/LP-931

Conversation

@hiteshkava

Copy link
Copy Markdown

Description

This change updates the broken link component to normalize URLs that start with www. by automatically prepending https:// before opening them.

Previously, links such as www.example.com were treated as relative URLs by the browser, causing them to open incorrectly. With this change, these links are converted to https://www.example.com while preserving the original displayed text.

Changes

  • Detect URLs that start with www.
  • Prepend https:// before opening the link
  • Keep existing behavior unchanged for http:// and https:// URLs

Testing

  • Verified www.example.com opens as https://www.example.com
  • Verified https://example.com continues to work as expected
  • Verified http://example.com continues to work as expected

Jira: https://2u-internal.atlassian.net/browse/LP-931

@hiteshkava
hiteshkava requested a review from viv-helix July 31, 2026 06:04
@hiteshkava
hiteshkava merged commit 5bf6e08 into release-ulmo Jul 31, 2026
4 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