tangled
alpha
login
or
join now
dunkirk.sh
/
unduckified
5
fork
atom
A fast, local-first "redirection engine" for !bang users with a few extra features ^-^
5
fork
atom
overview
issues
pulls
pipelines
bug: handle new kagi site based bang search
dunkirk.sh
5 months ago
99997cd0
bb17ccfd
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+4
-2
1 changed file
expand all
collapse all
unified
split
src
main.ts
+4
-2
src/main.ts
···
518
518
const query = url.searchParams.get("q")?.trim() ?? "";
519
519
520
520
switch (url.pathname.replace(/\/$/, "")) {
521
521
-
case "": {
521
521
+
case "":
522
522
+
case "/search": {
522
523
if (!query || query === "!" || query === "!settings") {
523
524
noSearchDefaultPageRender();
524
525
return null;
···
564
565
565
566
return redirectUrl;
566
567
}
567
567
-
default:
568
568
+
default: {
568
569
notFoundPageRender();
569
570
return null;
571
571
+
}
570
572
}
571
573
}
572
574