aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/router.go2
-rw-r--r--frontend/index.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/router.go b/backend/router.go
index adc28fc..01b8a07 100644
--- a/backend/router.go
+++ b/backend/router.go
@@ -27,7 +27,7 @@ var templates embed.FS
func SetupLogger(debug bool) {
logFormat := httplog.SchemaECS.Concise(!debug)
- logLevel := slog.LevelWarn
+ logLevel := slog.LevelInfo
if debug {
logLevel = slog.LevelDebug
}
diff --git a/frontend/index.ts b/frontend/index.ts
index 13997b3..ee1e7ae 100644
--- a/frontend/index.ts
+++ b/frontend/index.ts
@@ -2,7 +2,7 @@ import htmx from "htmx.org";
function setupAnchors() {
document.querySelectorAll("a").forEach(e => {
- if (!e.href.startsWith(window.location.origin)) {
+ if (!e.href.startsWith(window.location.origin) && /https?:\/\//.test(e.href)) {
e.target = "_blank";
return
}