[
https://issues.apache.org/jira/browse/DELTASPIKE-1150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15293612#comment-15293612
]
Thomas Andraschko commented on DELTASPIKE-1150:
-----------------------------------------------
Wouldn't it be better to do:
if (!link.target || link.target === '_self'){
... apply onclick
}
> 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)