I’d like to configure XWiki to open all external links in new Windows / Tabs, i.e. with ‘target="_blank"’.
The first think I found concerning this was JIRA XWIKI-1217, according to which I should configure the following setting in xwiki.cfg:
xwiki.render.externallinks.defaulttarget=_blank
This did not work at all however, and I don’t seem to be the only one having trouble with this:
http://lists.xwiki.org/pipermail/users/2014-April/027972.html
So it probably just isn’t supported any more, I guess.
An alternative approach I stumbled accross uses JavaScript to “patch” all links on the page after loading:
https://forum.xwiki.org/t/solved-external-links-set-default-target-as--blank/2583
Ok, obviously can be done this way, but does not appear to me as a really elegant solution…
So is this the recommended way to go for recent XWiki versions, or did I miss something obvious?