summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index 42b0d0efb..dbbe30251 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1020,7 +1020,10 @@ struct browser_window *browser_window_find_target(struct browser_window *bw, con
target = TARGET_SELF;
/* allow the simple case of target="_blank" to be ignored if requested */
- if ((!option_target_blank) && ((target == TARGET_BLANK) || (!strcasecmp(target, "_blank")))) return bw;
+ if ((!new_window) && (!option_target_blank)) {
+ if ((target == TARGET_BLANK) || (!strcasecmp(target, "_blank")))
+ return bw;
+ }
/* handle reserved keywords */
if ((new_window) || ((target == TARGET_BLANK) || (!strcasecmp(target, "_blank")))) {