You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default cmd lighthouse-ci <URL> only returns score(s) when the URL is totally validated. But returns LHError when a non-validated URL is passed as an input.
What is the current behavior?
For example, let's say if you try,
lighthouse-ci https://neilblaze.live
it'll pass all the checks & return the successful response with the metrics. But, if you try this,
lighthouse-ci neilblaze.live
it'll return LHError! ⚠️
Checks out, it does work with validated sub-domains too, but not with the unvalidated ones.
Even, if you exclude 'www', it returns the same (LHError).
⚠️ Note : Subdomains don't work with "www" prepended! This test was done for example purposes.
I'm submitting a ...
bug report
feature request
support request
What is the expected behavior?
The non-validated URL's should auto-converted into valid ones to make the check pass & return the metrics. I did explore the codebase & I'm trying to figure out where from the cmd-line input is being taken as a string.
I'm suggesting a method as follows,
rootStatement="Lorem ipsum dolor sit amet, magna aliqua. Visit www.neilblaze.live for regular updates. Duis aute irure $ dolor in cupidatat @ non proident.";// 💡 rootStatement is the dummy input functiondetectURLs(message){varurlRgx=/(((https?:\/\/)|(www\.))[^\s]+)/g;// ⚠️ url check without http/https & www is also possible, but in that case, it'll only work with TLD's, hence ignoredreturnmessage.match(urlRgx)}link=detectURLs(rootStatement);// Old URLlinkx=(link.indexOf('://')===-1) ? 'http://'+link : link;// http is auto redirected to https if SSL enabled// Now replacing the new URL (with all validation check parameters) in the place of the URL string (without parameters)finalLink=rootStatement.replace(link,linkx);// console.log(finalLink) // Debug purposes
From here, we just need to pass the finalLink into the root 🚀
What is the motivation / use case for changing the behavior?
I personally use this project a lot & I want to improve the overall experience 😄
Description
What is the current behavior?
it'll pass all the checks & return the successful response with the metrics. But, if you try this,
it'll return LHError!⚠️
I'm submitting a ...
What is the expected behavior?
The non-validated URL's should auto-converted into valid ones to make the check pass & return the metrics. I did explore the codebase & I'm trying to figure out where from the cmd-line input is being taken as a string.
I'm suggesting a method as follows,
From here, we just need to pass the
finalLink
into the root 🚀What is the motivation / use case for changing the behavior?
I personally use this project a lot & I want to improve the overall experience 😄
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: