Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
user interface text
Priority:
Normal
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
22 Jan 2017 at 19:33 UTC
Updated:
18 Mar 2017 at 18:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ashish-deynap commentedInstances of incorrect link to Drupal 8 theming guide have been corrected.
Patch is attached.
Comment #3
ashish-deynap commentedComment #4
chiranjeeb2410 commented@ashish-deynap,
Patch applies well. Changing status to RTBC.
Comment #5
Anonymous (not verified) commentedMaybe better use
https://www.drupal.org/docs/8/themingand try replace all links in core like:Comment #6
chiranjeeb2410 commentedMade the required changes. Uploading patch.
Comment #7
ashish-deynap commentedAttached is the patch with removed all instances of incorrect links to theme guide.
Comment #8
Anonymous (not verified) commented#7 looks nice! After this patch we have only two problems here:
And one problem here:
I'm not found other problems with links to the theme documentation. But maybe we need create same issues for modules and api guide links? Example:
But it is better to know what to do from some more experienced developer.
Comment #9
Anonymous (not verified) commentedExample, maybe we can upgrade all old links by script, that get the final forwarding address. I could try to do it in this week, if nobody has ready solution for this (or interest to do it), of course.
Comment #10
Anonymous (not verified) commentedOK. I made an ugly and slow script. It detected a 3093 links in
/corefolder and checked their status. Next exluded/core/assets/vendorfolder. If anyone is interested:drupal.org(drupal.org.links.txt)docs/7|theme/7|theme_table/7(7.docs.links.txt)Any idea what to do next?
Comment #11
xjmAh, #2854586: Stark's helptext link redirects to D7 theme guide was a partial duplicate of this.
I'd like to check all of core for redirected links, and then start from that big picture to fix things. Otherwise we'll be rolling small and duplicate patches for a long time. See #2855175: [META] Many documentation / handbook URLs redirect to D7 content; maybe we can start that discussion on that issue? @valpas your research would be good to repost there.
Thanks!
Comment #12
Anonymous (not verified) commented@xjm, thanks! Repost done.
Reroll #7 after #2854586: Stark's helptext link redirects to D7 theme guide + first half of #8 (see interdiff).
Comment #13
chiranjeeb2410 commentedComment #14
Munavijayalakshmi commentedLine exceeding 80 characters.
Comment #15
Munavijayalakshmi commented#14 Fixed. Applied the patch, Please review.
Comment #16
chiranjeeb2410 commentedChange is good. Patch applies cleanly. Uploading interdiff. Updating to RTBC.
Comment #18
xjmOkay, thanks! I went over these carefully and also over the results on #2855175: [META] Many documentation / handbook URLs redirect to D7 content.
There is one additional reference to this link in:
core/modules/migrate_drupal/tests/fixtures/drupal7.phpBut that is a Drupal 7 migration test fixture, specifically about the Drupal 7 theme, so we should not change that one.
At first I thought #14 did not exceed 80 characters, because Dreditor did not show it going over the 80-character line. But then I checked it in my editor and it turns out @Munavijayalakshmi is right; it is 81 characters. Good catch!
Since we have a working patch here and this covers all the cases we need to fix for this link, I think this is a good scope. Further patches to correct other links should be done as part of #2855175: [META] Many documentation / handbook URLs redirect to D7 content as we will coordinate them there.
As a documentation improvement, this change is also rc-eligible. Committed to 8.4.x and 8.3.x. Thanks!