Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
1 Jul 2010 at 20:18 UTC
Updated:
30 Dec 2015 at 17:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhodgdonI tried to fix this months ago and was overruled. The philosophy:
- When D7 becomes the current version, the link will be correct
- When D8 goes into development, we would have to change the link suffix to /8 to have the Form API page point to the right FAPI reference page.
So, tenatively setting this to "by design". Sigh.
Comment #2
Anonymous (not verified) commentedWhat will happen when Drupal 8 is marked as the current version? The link will take to the Drupal 8 page; the effect is then to not give a correct page now, and when Drupal 8 will be out.
Comment #3
Island Usurper commentedOK, I'll disagree with the overruling.
Sure, when D7 becomes the current version, it will be correct. And when D8 becomes the current version, it will be wrong! It seems obvious to me that http://api.drupal.org/api/group/form_api/6 should point to D6 pages and http://api.drupal.org/api/group/form_api/7 should point to D7 pages. Whenever the D8 begins development, there ought to be some kind of checklist that reminds people to change things like this.
Comment #4
Anonymous (not verified) commentedNot only the link would be wrong for Drupal 8, but also for future versions of Drupal.
Considering that there are still users using Drupal 5 modules when Drupal 7 is almost at the doors, there could be still users using Drupal 7 when Drupal 9 will be ready. :-)
Comment #5
jhodgdonActually, I think this is fixable. The link in the code should just be to the file name forms_api_reference.html rather than to the full URL. That should generate the correct URL for the correct version.
Comment #6
tayzlor commentedHey!,
Attaching patch for #5.
Comment #7
tayzlor commentedComment #8
jhodgdonSorry, somehow two issues for this got created. The other one is more complete (and is currently postponed):
#699604: Use file name rather than full URL for links to Form API Reference page