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

broken header link to wiki when viewing non-front page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.7, 1.9.3
    • 1.8.6
    • None
    • None
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      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>":"").

            stronk7 Eloy Lafuente (stronk7)
            kussmaul Clif Kussmaul
            Helen Foster Helen Foster
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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