Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27695

Moodle Docs links need to be fixed to point to correct versions of docs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9.12, 2.0.3, 2.1
    • Fix Version/s: 1.9.13, 2.0.4
    • Component/s: Documentation
    • Labels:
      None
    • Testing Instructions:
      Hide

      All the "Moodle docs" links at the footer of pages in 1.9, 2.0 and 2.1 should be going to the correct docs (if not the exact version, then the latest available version for that language). Try different langauges too.

      Show
      All the "Moodle docs" links at the footer of pages in 1.9, 2.0 and 2.1 should be going to the correct docs (if not the exact version, then the latest available version for that language). Try different langauges too.
    • Workaround:
      Hide

      None

      Show
      None
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Moodle contains a config setting "docroot" which defaults to "http://docs.moodle.org"

      Leave the default as it is.

      However, in lib/weblib.php update get_docs_url() so that instead of producing URLS like:

      $CFG->docroot/en/blah

      it now produces

      $CFG->docroot/20/en/blah

      Where "20" in the example is derived from the first three letters of $CFG->release with the period taken out.

      eg '2.0.3+ (Build: 20110511)' ---> '20'

      This needs to be fixed for 1.9, 2.0 and 2.1.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    1/Aug/11