Custom menu items - open in new window

Re: Re: Re: Custom menu items - open in new window

by Gareth J Barnard -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Dear Lee,

Sorry, your solution is wrong. You need to add 'target' => '_blank' to the existing array instead of putting it in a new one and pushing the existing array to the fourth parameter of the method and therefore removing its elements from the attributes of the tag that the html_writer produces.

G