aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-tab.c')
-rw-r--r--src/ephy-tab.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index b18f971bc..353f0d30b 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -1819,8 +1819,19 @@ open_link_in_new_tab (EphyTab *tab,
if (new_tab)
{
- return ephy_link_open (EPHY_LINK (tab), link_address,
- tab, EPHY_LINK_NEW_TAB) != NULL;
+ EphyTab *dest;
+ dest = ephy_link_open (EPHY_LINK (tab), link_address,
+ tab, EPHY_LINK_NEW_TAB);
+
+ if (dest)
+ {
+ ephy_embed_shistory_copy (ephy_tab_get_embed (tab),
+ ephy_tab_get_embed (dest),
+ TRUE, /* back history */
+ FALSE, /* forward history */
+ FALSE); /* current index */
+ return TRUE;
+ }
}
return FALSE;