diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c
index 7cc22e6..71d6ae4 100644
--- a/src/ephy-location-action.c
+++ b/src/ephy-location-action.c
@@ -30,6 +30,8 @@
 #include "ephy-link.h"
 #include "ephy-debug.h"
 
+#include <libsoup/soup.h>
+
 #include <gdk/gdkkeysyms.h>
 #include <gtk/gtk.h>
 
@@ -140,6 +142,15 @@ match_func (GtkEntryCompletion *completion,
 		}
 	}
 
+	if (ret && url) {
+		SoupURI *uri = soup_uri_new (url);
+		SoupSession *session = webkit_get_default_session ();
+		if (uri) {
+			soup_session_prepare_for_uri (session, uri);
+			soup_uri_free (uri);
+		}
+	}
+
 	g_free (item);
 	g_free (url);
 	g_free (keywords);
