From 65bf66af39204f12e7340e9eac37a7846db2e7e1 Mon Sep 17 00:00:00 2001
From: scanash00
Date: Thu, 29 Jan 2026 22:17:22 -0900
Subject: [PATCH] fix home redirects
---
web/src/components/MobileNav.jsx | 4 ++--
web/src/pages/AnnotationDetail.jsx | 11 ++++++-----
web/src/pages/New.jsx | 2 +-
web/src/pages/Privacy.jsx | 2 +-
web/src/pages/Terms.jsx | 2 +-
5 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/web/src/components/MobileNav.jsx b/web/src/components/MobileNav.jsx
index 217b907..60a4ad0 100644
--- a/web/src/components/MobileNav.jsx
+++ b/web/src/components/MobileNav.jsx
@@ -14,8 +14,8 @@ export default function MobileNav() {
return (
@@ -171,7 +172,7 @@ export default function AnnotationDetail() {
return (
-
+
← Back to Feed
@@ -179,12 +180,12 @@ export default function AnnotationDetail() {
{annotation.type === "Highlight" ? (
(window.location.href = "/")}
+ onDelete={() => navigate("/home")}
/>
) : annotation.type === "Bookmark" ? (
(window.location.href = "/")}
+ onDelete={() => navigate("/home")}
/>
) : (
diff --git a/web/src/pages/New.jsx b/web/src/pages/New.jsx
index 9e55a62..5aeddf9 100644
--- a/web/src/pages/New.jsx
+++ b/web/src/pages/New.jsx
@@ -59,7 +59,7 @@ export default function New() {
}
const handleSuccess = () => {
- navigate("/");
+ navigate("/home");
};
return (
diff --git a/web/src/pages/Privacy.jsx b/web/src/pages/Privacy.jsx
index c9861bc..5cabcdc 100644
--- a/web/src/pages/Privacy.jsx
+++ b/web/src/pages/Privacy.jsx
@@ -4,7 +4,7 @@ import { Link } from "react-router-dom";
export default function Privacy() {
return (
-
+
Home
diff --git a/web/src/pages/Terms.jsx b/web/src/pages/Terms.jsx
index 1ef2315..38666ca 100644
--- a/web/src/pages/Terms.jsx
+++ b/web/src/pages/Terms.jsx
@@ -4,7 +4,7 @@ import { Link } from "react-router-dom";
export default function Terms() {
return (
-
+
Home
--
knotmirror 0.0.1