-
Notifications
You must be signed in to change notification settings - Fork 285
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
Update archive.html #1232
Update archive.html #1232
Conversation
Hi @segun-codes , I have worked on a similar issue , Where I made a more flexible function(It's yet to be merged, I hope @jywarren merges it soon, haha) . For example, when I enter a url without |
Hi @vanithaak, okay but it appears the focus of the issue in #1187 slightly differs from yours, don't you think so? @jywarren, I will appreciate your thought on this too? |
I mean if the function already adds |
|
You mean if a complete url |
If a user-supplied url is faulty in a way (e.g., arch.net instead of archive.org, http instead of https etc.) based on certain criteria set, then validation will set in. In my opinion, whether this is trivial or not is really a simple design decision. |
Great idea! Let's wait for Jeff's thoughts. What do you think? |
I agree with you. |
Hi all, thank you for your careful consideration here. I'm a bit confused about this question:
I think that within a certain range of irregularities, such as http vs. https, forgetting to include |
@jywarren, thank you for your thought and it shows you actually understand the conversation between @vanithaak and myself. Hi @vanithaak, I am okay with with @jywarren's suggestion that we collaborate. Given what you have done so far, I think while I focus on simply validating hostname and generating a message to user, you could just add the functionality of correcting issues such as |
sure! |
Hi @vanithaak, having gone through your code, I think there's no further need for URL validation. Your logic takes over, almost completely, the responsibility (of supplying correct url) from the user so that concern related to correctness of url form no longer exists. If @jywarren is satisfied with what you have done, then I haven't any need to contribute here. Many thanks. |
Hi all, OK, thank you for carefully thinking through this. I did merge the URL correction code in #1175. But there was one more case -- where |
Hi @jywarren, yes I would like to update the code so it can automatically switch |
Fixes #1187 (<=== Add issue number here)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
grunt test
If tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!