-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Offer to fix missing http:// in website tag #6831
Comments
Would there be a way to make it check if the website has https first and then go with that instead of http if it does? If so, I think it would be a good idea to pick https when it's available. |
I considered this when implementing the validation, but didn't follow it up for two reasons:
These don't necessarily mean a quick-fix can't be added, it would be convenient for users who're paying attention. I'm just not sure we can guarantee it's always a valid fix - in which case it seems unsuitable for a quick fix. |
Well, if the website field is down at the bottom and you need to scroll down to see it, users might not even notice it. Also, saying "invalid website" doesn't exactly explain the problem to users who might not realise http is needed - www.example.com looks like a valid website, so that needs some explaining.
Not sure you can guarantee any fix in iD at the moment will always be a valid fix...? |
A fix would be nice here, but it's true iD can't be sure whether a site is I'm inclined to just remove this type of website validation check altogether. The data improvements seem relatively minor compared to the cost of prompting the user. |
I can't see a safe way to query the site. Privacy forbids giving an arbitrary site the users personal information like they would get in an HTTP request |
osmose checks for this error, gives the choice of both, and displays both so you can easily click and check the website: http://osmose.openstreetmap.fr/en/map/?#zoom=13&lat=55.93953&lon=-3.1811&item=3093&level=1%2C2%2C3&tags=&fixable=online However before you remove the check I have some suggestions:
If it must be removed, then iD should highlight the form field with a red border when it is missing http - this happens already in Firefox but not Chrome. |
I removed the warning. Perhaps eventually we can flag formatting at the field level instead of the feature level, as some browsers already do. |
A website tag without http:// is highlighted as an issue - it would be good if iD offered to "upgrade" or fix this by adding the protocol.
Also, you'll notice I had to scroll down to actually see the website field. Perhaps iD could move fields which are an issue higher up in the list, or even into the issues section just below the yellow box?
The text was updated successfully, but these errors were encountered: