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

URLs aren't validated correctly #76

Open
darylknight opened this issue Jun 15, 2020 · 0 comments
Open

URLs aren't validated correctly #76

darylknight opened this issue Jun 15, 2020 · 0 comments

Comments

@darylknight
Copy link

When you use a URL field in Craft, the client has to type the protocol (https://). When URL is selected in LinkIt, it looks like this doesn't happen. I've just done a broken link report on a client site, and one of the fields is this:

image

Which means the front end code is outputting https://theclientwebsite.com/www.duttongoldfield.com

I tried putting random text in there, and it DID get validated and wouldn't let me save it. Then I changed it back to www.duttongoldfield.com, and LinkIt automatically saved the URL as http://www.duttongoldfield.com.

What would cause it to automatically fix the URL when I enter it, but not when the client does? I think it'd be more reliable if it just failed a URL that didn't include a protocol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants