Closed (fixed)
Project:
Drupal core
Version:
8.9.x-dev
Component:
link.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2020 at 11:57 UTC
Updated:
20 Apr 2020 at 11:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kartagisComment #3
avpadernoComment #4
longwaveShould the https label below be in the form of a question as well? We should probably be consistent, do we have a standard for this?
Comment #5
avpaderno@longwave I am not sure there is a standard, but at least the description should be an English phrase/sentence. To me, If the URL should use a secure protocol doesn't seem a phrase an English native speaker would use. I think Does the URL use a secure protocol? sounds better, to me.
Comment #6
pandaski commentedI don't think we have a strict standard.
But a "question mark" here make sense to me.
Comment #7
kartagisHere's another patch fixing both issues.
Comment #8
avpadernoit's missing the subject. (The sentence should be Should the URL use a secure protocol? even if I think Does the URL use a secure protocol? is better.)
Comment #9
prabha1997 commentedI am working on this issue
Comment #10
prabha1997 commentedI uploaded a patch with required changes for label with proper sentence
Comment #11
longwaveLooks great, thanks!
Comment #12
alexpottRather than making up new language we could borrow the documentation. This would be the first use of a question mark in boolean type labels in core.
So mapping from the docs in \Drupal\Core\Url::fromUri() which is what these settings map to we get:
Whether to force the output to be an absolute link (beginning with http:)Whether this URL should point to a secure locationComment #13
rithesh bk commentedcurrently working on this issue ......
Comment #14
rithesh bk commentedComment #15
kishor_kolekar commentedplease review the patch.
Comment #16
avpadernoThe question mark is not needed. The other labels don't use a period either.
Comment #17
avpadernoComment #18
jungleif it is a secure URL, it's beginning with
https:, so beginning withhttp:is not always true.if change it to "Whether to force the output to be an absolute link (beginning with http)", without :, both http: and https: are applicable.
And should link such as ftp://drupal.org/files/projects/drupal-8.8.2.zip be considered here?
how about "Whether to use https or not? "
a secure location is not obvious for me to tell where to use https or http. as the key is https.
I am not a native English speaker, so just posting suggestions.
Comment #19
kishor_kolekar commented@kiamlaluno I have removed question mark. thanks for suggestion.
here is the new patch please review.
Comment #20
avpadernoWhether to force the output to be an absolute link (beginning with http:) and Whether this URL should point to a secure location are taken from the description of the options given in
Url::fromUri()as requested from comment #12.While it's true that Whether to force the output to be an absolute link (beginning with http:) seems to say that a link starting with https: is not an absolute link, Whether to force the output to be an absolute link (beginning with http) would not be correct, since a link starting with http is not absolute. To be absolute, the first part of the link must be the URI scheme, which at least include the colons.
If there is the need to explain what absolute link means, I would use the following labels.
Comment #21
jungleAgree with @kiamlaluno, patch adjusted according to #20
Comment #22
joachim commentedLooks good!
Updated the IS too to match what the patch is now doing.
Comment #24
abhisekmazumdarNot sure why the patch is failing but this looks good to me.
Comment #25
avpadernoThe tests are failing because two exceptions.
They are caused from a undefined index in a function that has not been changed from the patch.
Comment #26
pandaski commentedAny blockers to this issue?
Comment #27
catchThe new language implies that if https isn't configured, then the link should not point to a secure location. I think the 'force' language is important here even if we don't use the current wording.
Comment #28
neslee canil pintoComment #29
abhisekmazumdarThe patch got apply without any issue and the labels descriptions look good to me. Making this as RTBC.
Thank You
Comment #30
alexpottCommitted fb0ced5 and pushed to 9.1.x. Thanks!
Asking release managers if we can backport this to 8.9.x and 9.0.x.
Comment #32
alexpottDiscussed with @catch and we agree to cherry-pick this to 8.9.x and 9.0.x