summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/html.c b/html.c
index aebb104..321d731 100644
--- a/html.c
+++ b/html.c
@@ -138,6 +138,8 @@ enum kcgi_err htmlNav(struct khtmlreq *html, struct kreq *req) {
 			KATTR_ACTION, Pages[Search],
 			KATTR__MAX
 		)
+		|| htmlHidden(html, req, Network)
+		|| htmlHidden(html, req, Context)
 		|| khtml_attr(
 			html, KELEM_INPUT,
 			KATTR_TYPE, "search",
@@ -145,8 +147,6 @@ enum kcgi_err htmlNav(struct khtmlreq *html, struct kreq *req) {
 			KATTR_VALUE, (query ? query : ""),
 			KATTR__MAX
 		)
-		|| htmlHidden(html, req, Network)
-		|| htmlHidden(html, req, Context)
 		|| khtml_elem(html, KELEM_BUTTON)
 		|| khtml_printf(
 			html, "Search %s",
@@ -312,8 +312,8 @@ eventNetwork(struct khtmlreq *html, struct kreq *req, struct Event *event) {
 	}
 	char *href = khttp_urlpart(
 		NULL, NULL, Pages[Search],
-		Keys[Query].name, req->fieldmap[Query]->parsed.s,
 		Keys[Network].name, event->network,
+		Keys[Query].name, req->fieldmap[Query]->parsed.s,
 		NULL
 	);
 	if (!href) err(EX_OSERR, "khttp_urlpart");
@@ -337,9 +337,9 @@ eventContext(struct khtmlreq *html, struct kreq *req, struct Event *event) {
 	}
 	char *href = khttp_urlpart(
 		NULL, NULL, Pages[Search],
-		Keys[Query].name, req->fieldmap[Query]->parsed.s,
 		Keys[Network].name, event->network,
 		Keys[Context].name, event->context,
+		Keys[Query].name, req->fieldmap[Query]->parsed.s,
 		NULL
 	);
 	if (!href) err(EX_OSERR, "khttp_urlpart");
nroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe