Redirected format

Course formats ::: format_redirected
Maintained by Juan Pablo de Castro
This course format redirects to courses that metalink the current one.
Latest release:
24 sites
6 fans
Current versions available: 1

Redirect course format

This course format redirects to courses that metalink the current one.

It is useful when you want to fuse various "source" courses into a "target" course and wants to do all the teaching in the "fused" one.

Usually the original courses need to be hidden from students and hence they are not browsable and dificult to find. If the source courses are not hidden, teachers and students may get confused with all that courses.

By setting the source courses to "Redirect format" the original courses can be visible and browsable avoiding student confussion but they are transparently redirected to the target course.

If there is only one target course, students are redirected directly. If there are more than one, a navigation page is shown instead.

Current implementation only redirects to courses that have metalinked to this course. More redirection conditions may be implemented in the future.

This plugin was developed and is being successfully used at the University of Valladolid, Spain.

Potential privacy issues



Screenshot #0
Screenshot #1


Juan Pablo de Castro (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Mon, Sep 27, 2021, 12:10 AM
    Approval issue created: CONTRIB-8720
  • Fri, Mar 25, 2022, 2:58 AM

    We've just installed the Redirected format and have been unable to get it to work. I suspect that we / I don't fully understand what is involved in getting it to work. Following are the steps I took to utilize this format in a course that has been meta-linked to another course.

    - We have a PRIMARY course that has been meta-linked to 2 other SECONDARY courses.
    - The SECONDARY courses have been hidden to ensure that students access the PRIMARY course from their Moodle dashboard.

    1. I confirmed that the PRIMARY course is indeed META-LINKED to the SECONDARY courses.
    2. I confirmed that the SECONDARY courses are "hidden" as they were meta-linked to another course from the primary course.
    3. Within one of the two SECONDARY courses, I updated the course format to REDIRECTED course format.
    4. Upon saving, I received an error:
    Can't find data record in database table course.
    More information about this error

    Suggestions on what I might have missed in my attempt to utilize the Redirected course format?

    Any thoughts are appreciated, Lori
  • Fri, Mar 25, 2022, 12:59 PM
    Hi Lori,

    thank you for your interest on this plugin.

    If first place, this format is intended to avoid having to hide the courses. That is, the matalinked courses keep visible and fully browsable, but disabled in the practice and redirected. If you are planning to hide the secondary courses, then you don't need to use this plugin.

    About your issue: I'm not sure that it is related with this plugin because the plugin does not access "course" table directly. Nevertheless I would like to see full trace of the error. Can you access to the logs on your server or increase the DEBUG level and send a more detailed log trace? Please report it in the "Bug tracker" at
Please login to post comments