diff --git a/remix/app/components/Nav/Nav.tsx b/remix/app/components/Nav/Nav.tsx index 16c8725..c11dcf2 100644 --- a/remix/app/components/Nav/Nav.tsx +++ b/remix/app/components/Nav/Nav.tsx @@ -49,6 +49,9 @@ export const Nav = (props) => { if (pathname.slice(0, 7) === "/things") { const newPathname = pathname.replace("/things", "/edit") navigate(newPathname) + } else if (pathname.slice(0, 7) === "/editor") { + const newPathname = pathname.replace("/editor", "/things") + navigate(newPathname) } else if (pathname.slice(0, 5) === "/edit") { const newPathname = pathname.replace("/edit", "/things") navigate(newPathname)