intro: The default app is intro, and complete intro changes the default app to ssb.

This commit is contained in:
2025-05-21 18:48:29 -04:00
parent 17694f5646
commit 89622697d5
5 changed files with 50 additions and 51 deletions

View File

@ -2202,8 +2202,7 @@ static void _tf_ssb_db_resolve_index_work(tf_ssb_t* ssb, void* user_data)
if (!request->path)
{
/* From default global settings. */
request->path = tf_strdup("/~core/ssb/");
request->path = tf_strdup(tf_util_get_default_global_setting_string("index"));
}
}

View File

@ -368,7 +368,7 @@ static const setting_t k_settings[] = {
.type = "string",
.description = "If connecting by HTTP and HTTPS is configured, Location header prefix (ie, \"http://example.com\")",
.default_value = { .kind = k_kind_string, .string_value = NULL } },
{ .name = "index", .type = "string", .description = "Default path.", .default_value = { .kind = k_kind_string, .string_value = "/~core/ssb/" } },
{ .name = "index", .type = "string", .description = "Default path.", .default_value = { .kind = k_kind_string, .string_value = "/~core/intro/" } },
{ .name = "index_map",
.type = "textarea",
.description = "Mappings from hostname to redirect path, one per line, as in: \"www.tildefriends.net=/~core/index/\"",