aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ephy-session.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 6567614c5..39ac29fdb 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -35,6 +35,7 @@
#include "ephy-history-window.h"
#include "ephy-notebook.h"
#include "ephy-prefs.h"
+#include "ephy-request-about.h"
#include "ephy-settings.h"
#include "ephy-shell.h"
#include "ephy-stock-icons.h"
@@ -1116,6 +1117,12 @@ write_tab (xmlTextWriterPtr writer,
if (ret < 0) return ret;
address = ephy_web_view_get_address (ephy_embed_get_web_view (embed));
+ /* Do not store ephy-about: URIs, they are not valid for
+ * loading. */
+ if (g_str_has_prefix (address, EPHY_ABOUT_SCHEME))
+ {
+ address = g_strconcat ("about", address + EPHY_ABOUT_SCHEME_LEN, NULL);
+ }
ret = xmlTextWriterWriteAttribute (writer, (xmlChar *) "url",
(const xmlChar *) address);
if (ret < 0) return ret;