aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index b6d5955da..f2c374d60 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2698,7 +2698,15 @@ ephy_window_open_link (EphyLink *link,
embed = ephy_tab_get_embed (tab);
ephy_embed_load_url (embed, address);
- ephy_embed_activate (embed);
+
+ if (address == NULL || address[0] == '\0' || strcmp (address, "about:blank") == 0)
+ {
+ ephy_toolbar_activate_location (priv->toolbar);
+ }
+ else
+ {
+ ephy_embed_activate (embed);
+ }
new_tab = tab;
}