Quantcast
Viewing all articles
Browse latest Browse all 293694

Several URLs point to Drupal 7 documentation pages instead of Drupal 8

Problem/Motivation

Several links go to documentation for Drupal 7 instead of Drupal 8: for example, https://www.drupal.org/docs/7/install instead of https://www.drupal.org/docs/8/install.

Some links are redirected, and most have URL aliases as well as /node/... versions. The following table includes such variants.

Proposed resolution

Change the following links:

Old linkNew link
https://www.drupal.org/getting-started/installhttps://www.drupal.org/docs/8/install
https://www.drupal.org/docs/7/installhttps://www.drupal.org/docs/8/install
https://www.drupal.org/node/2764151https://www.drupal.org/docs/8/install
https://www.drupal.org/getting-started/install-contribhttps://www.drupal.org/docs/8/extending-drupal-8/overview
https://www.drupal.org/documentation/install/modules-themeshttps://www.drupal.org/docs/8/extending-drupal-8/overview
https://www.drupal.org/docs/7/extend/overviewhttps://www.drupal.org/docs/8/extending-drupal-8/overview
https://www.drupal.org/node/176043https://www.drupal.org/docs/8/extending-drupal-8/overview
https://www.drupal.org/documentation/install/multi-sitehttps://www.drupal.org/docs/8/multisite
https://www.drupal.org/docs/7/multisite/multi-site-sharing-the-same-code...https://www.drupal.org/docs/8/multisite
https://www.drupal.org/node/251040https://www.drupal.org/docs/8/multisite
https://www.drupal.org/getting-started/clean-urlshttps://www.drupal.org/docs/8/clean-urls-in-drupal-8
http://drupal.org/node/15365https://www.drupal.org/docs/8/clean-urls-in-drupal-8
https://www.drupal.org/documentation/multilingualhttps://www.drupal.org/docs/8/multilingual
https://www.drupal.org/docs/7/system-requirements/php#csprnghttps://www.drupal.org/docs/8/system-requirements/php-requirements

The following searches should show which files contain any of these links:

$ grep -irl "getting-started/install" core
core/tests/Drupal/FunctionalTests/Installer/InstallerTranslationTest.php
core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php
$ grep -irl "docs/7/install" core
$ grep -irl "node/2764151" core
$ grep -irl "documentation/install" core
core/INSTALL.txt
core/lib/Drupal/Core/FileTransfer/Form/FileTransferAuthorizeForm.php
$ grep -irl "extend/overview" core
$ grep -irl "node/176043" core
$ grep -irl "docs/7/multisite" core
$ grep -irl "node/251040" core
$ grep -irl "getting-started/clean-urls" core
core/INSTALL.txt
$ grep -irl "documentation/multilingual" core
core/INSTALL.txt
$ grep -irl "node/15365" core
core/modules/system/system.install
$ grep -irl "docs/7/system-requirements/" core
core/modules/system/system.install

As noted in #37, we should not update this reference, so we should get the same results before and after applying the patch:

$ grep -irB 1 "docs/7/" core
core/themes/seven/README.txt-To read more about the Seven theme's origins (in Drupal 7) please see:
core/themes/seven/README.txt:https://www.drupal.org/docs/7/core/themes/seven

This issue is just about updating the links. Some of them are explicit strings, like <a href="https://www.drupal.org/getting-started/install">installation handbook</a>, and others are arguments to the t() function, like t('... <a href=":link">Enable clean URLs</a>', [':link' => 'http://drupal.org/node/15365']). Being more consistent is out of scope for this issue, and may be a mistake. See Comment #22 below.

It is OK to expand the scope of this issue if you find addtional links that need to be updated. Just be sure to update the table and search results above. Let's not try to update every link that needs to be updated as part of this issue.

Remaining tasks

User interface changes

String changes

API changes

None

Data model changes

None


Viewing all articles
Browse latest Browse all 293694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>