Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.7, DEV backlog
-
None
-
MOODLE_37_STABLE
Description
It would be great if the section names within the navigation block/tree and breadcrumb would be anchor links. Currently they are not links at all, just section name.
I have found a couple related tracker issues (MDL-31842 and MDL-26226) but wanted to start one specific to this task as I'm willing to work on it.
What I've found so far is that the course format_*{} class has a get_view_url() method. These methods look for the navigation=true option and then ignore the request, returning NULL.
Simple enough, I commented out the logic which ignores navigation requests. Well that works to add the link but then causes side effects for the Navigation Block (each topic thinks it's active and its' contents/children should are shown, even though the children are not show).
Why ignore get_view_url() requests if they are for navigation? I'm assuming specifically for this bug. And where can I find the logic which determines which navigation node is active and such?
Attachments
Issue Links
- has been marked as being related by
-
MDL-76225 'Absolute 'direct links to sections (course/view.php?id=25122#sectionid-346124-title) do not work any more, only course/view.php?id=25122#section-4
-
- Closed
-