There is not target="_blank" added to external links.
HINT: wtf is this doing in hook_menu?
drupal_add_js('
$(function(){
$(\'a[@rel$="external"]\')
.click(function(){this.target = "_blank";
});
});', 'inline');
And why do you even need javascript?
Use the l() function's 3rd param.
Comments
Comment #1
cssd commentedI found this same issue and thanks to the 'hint' at the solution from danielb I think I have fixed it.
Well - it works for me anyway!
Hope this is useful...
The code changes are as follows;
and;
Comment #2
danielb commentedNice work mate - I think that is the optimal solution.
Comment #3
greg boggsThe ext_link module is the ideal way to solve this problem.
Comment #4
greg boggs