summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/fetchers/about.c17
-rw-r--r--content/fetchers/resource.c1
2 files changed, 18 insertions, 0 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 18528cda7..eeea3d992 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -572,6 +572,21 @@ static bool fetch_about_welcome_handler(struct fetch_about_context *ctx)
return true;
}
+static bool fetch_about_maps_handler(struct fetch_about_context *ctx)
+{
+ fetch_msg msg;
+
+ /* content is going to return redirect */
+ fetch_set_http_code(ctx->fetchh, 302);
+
+ msg.type = FETCH_REDIRECT;
+ msg.data.redirect = "resource:maps.html";
+
+ fetch_about_send_callback(&msg, ctx);
+
+ return true;
+}
+
/* Forward declaration because this handler requires the handler table. */
static bool fetch_about_about_handler(struct fetch_about_context *ctx);
@@ -593,6 +608,8 @@ struct about_handlers about_handler_list[] = {
fetch_about_licence_handler, true },
{ "welcome", SLEN("welcome"), NULL,
fetch_about_welcome_handler, false },
+ { "maps", SLEN("maps"), NULL,
+ fetch_about_maps_handler, false },
{ "config", SLEN("config"), NULL,
fetch_about_config_handler, false },
{ "Choices", SLEN("Choices"), NULL,
diff --git a/content/fetchers/resource.c b/content/fetchers/resource.c
index 723d09481..1a439aa5f 100644
--- a/content/fetchers/resource.c
+++ b/content/fetchers/resource.c
@@ -83,6 +83,7 @@ static const char *fetch_resource_paths[] = {
"credits.html",
"licence.html",
"welcome.html",
+ "maps.html",
"favicon.ico",
"default.ico",
"netsurf.png",