Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The System requirements URLs like:
https://www.drupal.org/requirements*
are the old Drupal 7 URLs and should be switched to the equivalent evergreen URL structure.
While the generic URL https://www.drupal.org/requirements
already redirects to the evergreen URL, the more pressing URLs to fix are ones that redirect to Drupal 7 URLs like the following:
- https://www.drupal.org/requirements/php/curl which redirects to https://www.drupal.org/docs/7/system-requirements/php-requirements#curl
- https://www.drupal.org/requirements/pdo which redirects to https://www.drupal.org/docs/7/system-requirements/what-is-pdo
- https://www.drupal.org/requirements/database which redirects to https://www.drupal.org/docs/7/system-requirements/database-server
- https://www.drupal.org/requirements/pdo#pecl which redirects to https://www.drupal.org/docs/7/system-requirements/what-is-pdo#pecl
but, if we are to update these URLs, we might as well update any that start with https://www.drupal.org/requirements
so no redirects happen at all.
Comment | File | Size | Author |
---|---|---|---|
#24 | interdiff_20-24.txt | 827 bytes | vsujeetkumar |
#24 | 3120222_24.patch | 5.46 KB | vsujeetkumar |
#20 | interdiff_18-20.txt | 2 KB | ravi.shankar |
#20 | 3120222-20.patch | 5.47 KB | ravi.shankar |
#18 | interdiff-16-18.txt | 1.52 KB | Hardik_Patel_12 |
Comments
Comment #2
swatichouhan012 CreditAttribution: swatichouhan012 at Valuebound for Valuebound commentedkindly review patch.
Comment #4
Kristen PolThanks for the patch.
1) Searched the code for places
drupal.org/requirements
is used and found:a)
https://www.drupal.org/requirements
redirects tohttps://www.drupal.org/docs/8/system-requirements
so doesn't need to be changed.b)
https://www.drupal.org/requirements/php/curl
redirects tohttps://www.drupal.org/docs/7/system-requirements/php-requirements#curl
and is handled by patch.c)
https://www.drupal.org/requirements/database
redirects tohttps://www.drupal.org/docs/7/system-requirements/database-server
and is not handled by patch.d)
https://www.drupal.org/requirements/pdo
redirects tohttps://www.drupal.org/docs/7/system-requirements/what-is-pdo
and is not handled by patch.e)
https://www.drupal.org/requirements/pdo#pecl
redirects tohttps://www.drupal.org/docs/7/system-requirements/what-is-pdo#pecl
and is not handled by patch.2) Patch applies cleanly for 8.9 but needs reroll for D9.
3) Only
aggregator
andsimpletest
are handled here but this could be updated to handle system.install too:4) Marking back to "Needs work".
Comment #5
Kristen PolFound a more general issue. We can keep this open for now but it will likely be handled in #2855175: [META] Many documentation / handbook URLs redirect to D7 content.
Comment #6
jofitz CreditAttribution: jofitz at jofitz commentedRe-rolled patch from #2 for D9.1.x (ready to make changes suggested in #4, so leaving as NW).
Comment #7
jofitz CreditAttribution: jofitz at jofitz commented#4.1c) Updated
#4.1d) There is no D8 equivalent page to https://www.drupal.org/docs/7/system-requirements/what-is-pdo, so replaced with a link to the section that mentions PDO
#4.1e) There is no D8 equivalent page to https://www.drupal.org/docs/7/system-requirements/what-is-pdo#pecl, so replaced with a link to the section that mentions PECL
Comment #8
Kristen PolThanks for the update. Although the changes seem fine, I'm wondering if we should wait until the Drupal 9 redirects are in place because I found out recently the links are going to redirect to evergreen URLs:
#3133569: Migrate Drupal 8 & 9 documentation to evergreen format (instead of major version specific)
Comment #9
Kristen PolNow that the evergreen URLs are in place, these changes should happen:
Change:
https://www.drupal.org/docs/8/system-requirements/php-requirements#curl
to
https://www.drupal.org/docs/system-requirements/php-requirements#curl
Change (in 2 places):
https://www.drupal.org/docs/8/system-requirements/php-requirements#database
to
https://www.drupal.org/docs/system-requirements/php-requirements#database
Change:
https://www.drupal.org/docs/8/system-requirements/database-server
to
https://www.drupal.org/docs/system-requirements/database-server
Comment #10
ridhimaabrol24 CreditAttribution: ridhimaabrol24 at Srijan | A Material+ Company for Drupal India Association commentedUpdated the URL with the correct ones. Please review!
Comment #11
Kristen PolThanks for the update. The changes look fine and the patch applies cleanly. But, since we are fixing the URLs to go to evergreen URLs, it might be good to do that for the other Drupal 8 URLs in the install files at the same time. I see additional Drupal 8 URLs in system.install and jsonapi.install. Though now I'm wondering if there is another issue that's already fixing these. I'll do some searching.
Comment #12
Kristen PolI don't see anything specifically for changing all the Drupal 8 links to evergreen URLs (though I might have missed it). I do see this one:
#2855175: [META] Many documentation / handbook URLs redirect to D7 content
which is a generic issue of Drupal 7 links. I hate to close this one out in lieu of that one but maybe that is the correct approach. I'll ask around.
Comment #13
Kristen PolAfter discussing this with @mradcliffe, @catch, and @andrewmacpherson in the bugsmash Slack channel, it seems like this could be a child issue to the more general issue and that issue could be made into a meta issue.
Since this issue was focused on changing URLs like:
https://www.drupal.org/requirements*
I think it would make sense to have this issue focused on changing any "System requirements" URL rather than only the few already addressed in the patch. The following are the remaining files that have the "System requirements" URL (https://www.drupal.org/requirements) which can be changed to the new evergreen version (https://www.drupal.org/docs/system-requirements).
Comment #14
ridhimaabrol24 CreditAttribution: ridhimaabrol24 at Srijan | A Material+ Company for Drupal India Association commentedUpdating the remaining URLS.
Please review!
Comment #15
Kristen PolSorry I wasn't clear. I was proposing to only change the system requirements URLs. In #13 I wrote:
"The following are the remaining files that have the "System requirements" URL (https://www.drupal.org/requirements) which can be changed to the new evergreen version (https://www.drupal.org/docs/system-requirements)."
If you think it should be handled differently, then the title and issue summary need to change to match the scope. Thanks.
Comment #16
davidhernandezI changed the PDO specific ones to the same general requirements url. Not sure if that was the intention but I didn't see a specific PDO docs page for D8.
Comment #17
Kristen PolThanks for the update. I noticed a couple things:
1) Nitpick:
Makes line go beyond 80 chars.
2) When searching for
drupal.org/requirements
after patching, there's still a URL here:Redirects to:
which is the Drupal 7 version. It should instead be:
Comment #18
Hardik_Patel_12 CreditAttribution: Hardik_Patel_12 at QED42 for Drupal India Association commentedUpdating curl url in aggregator.install file and INSTALL.txt nitpick , kindly review.
Comment #19
Kristen PolThanks for the update. Changes address #17.
I'm reading back through the old comments and it looks like some URLs were changed to the generic URL in #16 but I didn't catch that before because there was no interdiff. :(
IMO, these should be changed back:
Use https://www.drupal.org/docs/system-requirements/php-requirements#database
Use https://www.drupal.org/docs/system-requirements/database-server
Use https://www.drupal.org/docs/system-requirements/php-requirements#database
Comment #20
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedHere I have addressed comment #19.
Comment #22
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedChanging status to needs review as #20 passed the tests.
Comment #23
Kristen PolThanks for the update. Almost there!
1) Patch applies cleanly.
2) Tests pass.
3) Patch addresses issue in the issue summary.
4) Changes in #20 address items in #19.
5) After applying the patch and searching for any URLs like drupal.org/requirements*, there are none.
6) Checking each new URL shows that they work and they do not redirect anywhere else except for one. Sorry I didn't notice that before... or maybe it's a new redirect:
https://www.drupal.org/docs/system-requirements/database-server redirects to https://www.drupal.org/docs/system-requirements/database-server-requirem...
so that URL should be updated.
Moving back to needs work to address 6.
Comment #24
vsujeetkumar CreditAttribution: vsujeetkumar at Srijan | A Material+ Company for Drupal India Association commented@Kristen Pol I have fixed the address 6 in #23, Please have a look.
Comment #25
Kristen PolThanks for the update.
1) Patch applies cleanly and tests pass.
2) Interdiff looks good and addresses item from #23.6.
3) Checked that URL and it doesn't redirect to anything else.
4) I updated the issue summary to make the reasoning for this issue more clear.
Marking RTBC from this and #23.
Comment #26
alexpottCommitted 23eaaf1 and pushed to 9.1.x. Thanks!