Title attribute not available in the primary navbar (topbar)

Title attribute not available in the primary navbar (topbar)

by olivier dechepy -
Number of replies: 2
I'm using Moodle 4.1 (also tested on 4.2) + Boost theme

 it doesn't seems to be a title attribute for the primary navbar in the custom menu : 
  1. Even if, in `custommenuitems` ( https://yourmoodle/admin/settings.php?section=themesettings#admin-custommenuitems ) in the administration, you can add something like :
    mylink|http://mylink.com|my description|mylang
    with the third parameter set, you don't have any title on hover (nor in the code). (I've tested it on demo sandbox to be sure)
  2. In lib/templates/moremenu_children.mustache, there is no title displayable.
Is it a regression from moodle 4.x or just for the Boost theme ?

Thank you
Average of ratings: -
In reply to olivier dechepy

Re: Title attribute not available in the primary navbar (topbar)

by Gareth Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
In reply to Gareth Barnard

Re: Title attribute not available in the primary navbar (topbar)

by olivier dechepy -
It's working... sometimes.

If I have an url like http://google.com it works, but for some reason if I have an url with a querystring like https://someurl/page.php?id=123 it doesn't. 
It encodes the whole thing with https://someurl/page.php?id=123%22%20title%3D%22mytitle

The space is encoded in %20.

So, for several of the links I needed, the trick works, but this is a call for hackers with injection of not safe data.
https://someulr"><script>some evil script</script><a

Thank you anyway