-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix relative url #2144
fix relative url #2144
Conversation
good fixed. I nedd it. |
if (!/^[\w.-]+:(\/\/)?/.test(url)) { | ||
child.setAttribute('href', `https://${url}`); | ||
} | ||
if (/^\//.test(url)) child.setAttribute('href', `https://busy.org${url}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't use hardcoded https://busy.org
URL. It won't work on localhost, preview apps, beta version and forks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your comment. I've removed it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #2105
Changes
Test plan
I made a post for testing. It has various links for testing.