aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/sdl_net
diff options
context:
space:
mode:
Diffstat (limited to 'backends/networking/sdl_net')
-rw-r--r--backends/networking/sdl_net/handlers/indexpagehandler.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/backends/networking/sdl_net/handlers/indexpagehandler.cpp b/backends/networking/sdl_net/handlers/indexpagehandler.cpp
index da5cd2d3f9..9208cd0b15 100644
--- a/backends/networking/sdl_net/handlers/indexpagehandler.cpp
+++ b/backends/networking/sdl_net/handlers/indexpagehandler.cpp
@@ -35,8 +35,18 @@ IndexPageHandler::~IndexPageHandler() {}
void IndexPageHandler::handle(Client &client) {
Common::String code = client.queryParameter("code");
- if (code == "") {
- HandlerUtils::setMessageHandler(client, _("This is a local webserver index page."));
+ if (code == "") {
+ // redirect to "/files"
+ HandlerUtils::setMessageHandler(
+ client,
+ Common::String::format(
+ "%s<br/><a href=\"files\">%s</a>",
+ _("This is a local webserver index page."),
+ client.queryParameter("path").c_str(),
+ _("Open Files manager")
+ ),
+ "/files"
+ );
return;
}