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

broken header link to wiki when viewing non-front page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.6
    • Fix Version/s: 1.8.7, 1.9.3
    • Component/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      When viewing a wiki page (other than the front page), the header contains a (broken) link to the front page.
      The link is broken because no wiki ID is specified in the URL.

      To correct this, edit mod/wiki/view.php to replace moodleID with cm->id, as shown below

      diff view.php.orig view.php
      279c279
      < (($ewiki_title!=$wiki->name) ? " > <a href=\"view.php?id=$moodleID\">".format_string($wiki>name,true)."</a>":"").

      > (($ewiki_title!=$wiki->name) ? " > <a href=\"view.php?id=$cm>id\">".format_string($wiki->name,true)."</a>":"").

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Oct/08