Skip to content
Snippets Groups Projects
Unverified Commit 6d90d8ea authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #15861 from JMAConsulting/core-1398

#1398: Option to open navigation item in new window (if present)
parents a2366db0 f519ab9f
Branches
Tags
No related merge requests found
......@@ -471,7 +471,7 @@
}
function attr(el, item) {
var ret = [], attr = _.cloneDeep(item.attr || {}), a = ['rel', 'accesskey'];
var ret = [], attr = _.cloneDeep(item.attr || {}), a = ['rel', 'accesskey', 'target'];
if (el === 'a') {
attr = _.pick(attr, a);
attr.href = item.url || "#";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment