The follow up is to add www to the drupal.org link.
Problem/Motivation
I don't know if this is important or not. I have a website with a Powered by Drupal block in the footer. When attempting validation in http://validator.w3.org/checklink, they say
"The links below are not broken, but the document does not use the exact URL, and the links were redirected. It may be a good idea to link to the final location, for the sake of speed.
Line: 155 http://drupal.org/ redirected to https://drupal.org/
Status: 301 -> 200 OK
This is a permanent redirect. The link should be updated."
If it is important, here is his patch.
Proposed resolution
Contributor tasks needed
| Task |
Novice task? |
Contributor instructions |
Complete? |
| Create a patch |
Novice |
Instructions |
|
|
| Manually test the patch |
Novice |
Instructions |
|
| Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards |
|
Instructions |
|
Remaining tasks
- (novice) Write a patch for D8.
- Review the Drupal 8 patch.
User interface changes
API changes
Comments
Comment #1
ItangSanjana commentedComment #2
dcam commentedThis will have to be changed in Drupal 8 first.
Comment #3
dcam commentedComment #4
amitgoyal commentedPlease review attached patch for D8.
Comment #5
droplet commentedComment #7
webchickNice catch!
Committed and pushed to 8.x. Thanks!
Comment #8
amitgoyal commentedPlease review patch for D7 as well.
Comment #9
dcam commentedThe patch in #8 is the same as the patch provided in the original post.
The patch in the original post works for D7. After applying it the Powered by Drupal link changes to the https URL.
Comment #11
David_Rothstein commentedLikely testbot glitch - moving back to RTBC.
Comment #12
helmo commentedWe're now redirecting to www.drupal.org ... so core should update. Back to 8...
Here are patches for both D7 and D8
Comment #14
dcam commentedLooks good. #12 is RTBC for 8.0.x.
Comment #15
joshi.rohit100updated patch as there should be $this->t() not t() method. Also I dont know whether we should use '@' in placeholder in t() or '!' ?
Comment #19
joshi.rohit100Test failure says that "Unable to apply patch", but when I tried, patch applied successfully without any error.
Comment #20
helmo commentedPlease don't add unrelated changes. If t() needs to change then I expect there is a big issue to do it all at once.
The patch from #12still applies.
Comment #21
linl commentedThe patch for 8 in #12 no longer applies. Here's a reroll.
Comment #22
Bryn Vertesi commentedPatch applied just fine. Looks like that URL is right.
Comment #23
alexpottCommitted c7cce61 and pushed to 8.0.x. Thanks!
Comment #25
dcam commentedTesting the 7.x patch in #12.
Comment #27
dcam commentedI tested the 7.x patch in #12. It changes the link correctly.
Comment #28
secretsayan commentedRTBC + 1
Comment #30
David_Rothstein commentedCommitted to 7.x - thanks!