brendanheywood / moodle-local_cleanurls

Lets drag Moodle's url structure into this century...
36 stars 24 forks source link

Improve when a URL cannot be fully uncleaned. #100

Open roperto opened 6 years ago

roperto commented 6 years ago

For example:

The URL points to a course module which is invalid, so it cannot be uncleaner. But at this point, we already know the course or maybe even the section that it belongs to.

In those cases, we can redirect it to the closest known point.

From brendan:

the best result may be a dynamic 404 page which says
hey can't find this page, maybe you can go to
course
section
search
and not a blind redirect to the top thing