[
https://issues.apache.org/jira/browse/DELTASPIKE-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15293161#comment-15293161
]
Bernhard Hablesreiter commented on DELTASPIKE-1150:
---------------------------------------------------
I think the simplest solution would be to just ignore all links with
target="_blank".
This could be done in the loop in windowhandler.js by just checking the
target-attribute, e.g.:
var link = links[i];
if(link.getAttribute('target') === '_blank') {
continue;
}
External links opened in the same window are fine.
> Ignore "external" links in CLIENTWINDOW-mode
> --------------------------------------------
>
> Key: DELTASPIKE-1150
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-1150
> Project: DeltaSpike
> Issue Type: Improvement
> Components: JSF-Module
> Reporter: Bernhard Hablesreiter
> Assignee: Thomas Andraschko
>
> When in CLIENTWINDOW mode all hrefs are overridden with DeltaSpikes
> onclick-handler, even if they are "external" links, e.g. a companies website
> oder a user-created note with a link, etc. Maybe there is an option to ignore
> those links not matching the webapp-name (maybe with an additional option).
> This is especially problematic, if the link has a target="_blank". In this
> case the link is not being opened in a new tab, as the onclick-eventhandler
> is being executed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)