Skip to content
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: Add split :// to link in component #5135

Merged
merged 1 commit into from
Sep 24, 2020

Conversation

iamareebjamal
Copy link
Member

@iamareebjamal iamareebjamal commented Sep 24, 2020

Fixes #5115

The implementation was correct in #541 (a4b0290) but for some reason was made wrong in #580 (bbd3851)

If a link contains http(s):// it split by :// and made protocol https + :// and address rest of the link
But when it was changed, it made proto https and address rest of the link, so if someone pasted https://hello.com, the final URL will become httpshello.com

Anyway, LinkInput is too complex and big and should be broken down into simpler components

@vercel
Copy link

vercel bot commented Sep 24, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/5rnkwzzgg
✅ Preview: https://open-event-frontend-git-fork-iamareebjamal-link-https.eventyay.vercel.app

@iamareebjamal iamareebjamal merged commit e1b7967 into fossasia:development Sep 24, 2020
@iamareebjamal iamareebjamal deleted the link-https branch September 24, 2020 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Online Event: Webinar URL results in "not a valid URL" when copying link from browser including https/https
2 participants