Index: ephy-home-action.c
===================================================================
RCS file: /cvs/gnome/epiphany/src/ephy-home-action.c,v
retrieving revision 1.5
diff -u -5 -p -r1.5 ephy-home-action.c
--- ephy-home-action.c	24 Sep 2006 19:59:37 -0000	1.5
+++ ephy-home-action.c	16 Nov 2006 17:41:59 -0000
@@ -109,15 +109,18 @@ ephy_home_action_activate (GtkAction *ac
 		
 	address = eel_gconf_get_string (CONF_GENERAL_HOMEPAGE);
 
 	if (strcmp (action_name, "GoHome") == 0)
 	{
+		int flags = ephy_link_flags_from_current_event ();
+		if (flags & EPHY_LINK_NEW_TAB)
+			flags |= EPHY_LINK_JUMP_TO;
 
 		ephy_link_open (EPHY_LINK (action),
 				address != NULL && address[0] != '\0' ? address : "about:blank",
 				NULL,
-				ephy_link_flags_from_current_event ());
+				flags);
 	}
 	else if (strcmp (action_name, "FileNewTab") == 0)
 	{
 		ephy_home_action_open (action, 
 				       address, 
Index: ephy-navigation-action.c
===================================================================
RCS file: /cvs/gnome/epiphany/src/ephy-navigation-action.c,v
retrieving revision 1.32
diff -u -5 -p -r1.32 ephy-navigation-action.c
--- ephy-navigation-action.c	12 Nov 2006 21:03:42 -0000	1.32
+++ ephy-navigation-action.c	16 Nov 2006 17:41:59 -0000
@@ -148,13 +148,14 @@ activate_by_history_index (EphyNavigatio
 
 	if (ephy_gui_is_middle_click ())
 	{
 		EphyEmbed *dest;
 		EphyTab *newTab;
+		int flags = EPHY_LINK_NEW_TAB | EPHY_LINK_JUMP_TO;
 
 		newTab = ephy_link_open (EPHY_LINK (action), "about:blank", NULL,
-					 EPHY_LINK_NEW_TAB);
+					 flags);
 		g_return_if_fail (newTab != NULL);
 
 		dest = ephy_tab_get_embed (newTab);
 		g_return_if_fail (dest != NULL);
 
@@ -208,19 +209,23 @@ static void
 activate_up_menu_item_cb (GtkWidget *menuitem,
 			  EphyNavigationAction *action)
 {
 	EphyEmbed *embed;
 	char *url;
+	int flags;
 
 	embed = ephy_window_get_active_embed (action->priv->window);
 	g_return_if_fail (embed != NULL);
 
 	url = g_object_get_data (G_OBJECT (menuitem), URL_DATA_KEY);
 	g_return_if_fail (url != NULL);
 
+	flags = 0;
+        if (ephy_gui_is_middle_click ())
+		flags = EPHY_LINK_NEW_TAB | EPHY_LINK_JUMP_TO;            
 	ephy_link_open (EPHY_LINK (action), url, NULL,
-			ephy_gui_is_middle_click () ? EPHY_LINK_NEW_TAB : 0);
+			flags);
 }
 
 static GtkWidget *
 build_back_or_forward_menu (EphyNavigationAction *action)
 {
@@ -423,14 +428,17 @@ ephy_navigation_action_activate (GtkActi
 	{
 		activate_by_history_index (action, pos + 1);
 	}
 	else if (action->priv->direction == EPHY_NAVIGATION_DIRECTION_UP)
 	{
+		int flags = 0;
+		if (ephy_gui_is_middle_click ())
+			flags = EPHY_LINK_NEW_TAB | EPHY_LINK_JUMP_TO;
 		ephy_link_open (EPHY_LINK (action),
 				ephy_embed_get_go_up_list (embed)->data,
 				NULL,
-				ephy_gui_is_middle_click () ? EPHY_LINK_NEW_TAB : 0);
+				flags);
 	}
 }
 
 static void
 ephy_navigation_action_init (EphyNavigationAction *action)
