How can I add/remove links to moodle's "skip links"

Re: How can I add/remove links to moodle's "skip links"

by Di Juwel -
Number of replies: 0

thanks but it seems that the skip links menu only accepts links which are anchors to the same page.
for example, as I mentioned, I would like to add a skip link to a forum, so I should be using this:
$PAGE->requires->skip_link_to('/mod/forum/view.php?id=231', 'Main Forum');

the problem is, in lib/outputrequirementslib.php , the function "get_top_of_body_code" that builds the skip links from the $skiplinks array ads a "#" to every link:

foreach ($this->skiplinks as $url => $text) {
            $links .= html_writer::link('#'.$url, $text, $attributes);
}

it is not uncommon for a skip links menu to have links to other pages on the same site/course.
I've seen a great skip links menu made by The openU of Israel did and I think there should be an option to add skip links that are not anchors.

is there a way to change that without making core changes or theme changes ?