Closed abias closed 1 month ago
Hi @abias,
reagerading the setting: I second your proposed place in Feel > Policies.
The description of the category reads:
Settings for the overall behaviour of your Moodle site are located here: Navigation items, [...]
That is a match.
In Moodle's tool_policy framework, there are two pages which are meant to display existing policies to the end user:
returnurl
parameter and links back to this page if this parameter is given. In all cases when this parameter is missing or can't be given, expecially if the admin decided to link manually to this page from anywhere in the footnote or a smart menu, the user is in a dead end situation as soon as he enters this page and can only use the browser back button to return to Moodle.While view.php sets a page layout directly (see https://github.com/moodle/moodle/blob/main/admin/tool/policy/view.php#L50), the viewall.php page does not (see https://github.com/moodle/moodle/blob/main/admin/tool/policy/viewall.php). But it renders the
page_viewalldoc
renderer class which sets thepopup
layout itself.The goal of this issue is to overwrite the
page_viewalldoc
renderer class in Boost Union, if possible, and to replace the layout withstandard
instead ofpopup
there. The setting to control this change could be placed on theFeel
page in a new tab called Page layouts
within the subheading calledPolicies
, but I am not sure if this is the best place.