Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-1296

Moodle Docs links need to be fixed to handle language derivatives (i.e. en_us, fr_ca, etc.)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • docs.moodle.org
    • None

      The document links are using current_language() producing links like:

      http://docs.moodle.org/en_us/question/import (which end up redirecting to the main page)

      Is current_language() really what we want/intend? Would it make more sense to use something like get_parent_language to return en instead of en_us? If Moodle Docs is going to support child languages like en_us, then we need to ensure that pages are correctly redirecting.

      This came up at the Oklahoma Moot and created a little confusion. I would have expected to be directed to:

      http://docs.moodle.org/en/question/import

      Do we want the link generated to be en or en_us? If it is en_us, then Docs should redirect automatically to en version if the page does not exist (which may make creating the page more complicated).

      Peace - Anthony

            jtomkinson Jordan Tomkinson
            aborrow Anthony Borrow
            Mike Algozzine Mike Algozzine (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.