This commit is contained in:
benthecarman
2023-08-03 14:48:50 -05:00
committed by Tony Giorgio
parent ccb7f3737e
commit 932c0a1f2b
23 changed files with 779 additions and 114 deletions

View File

@@ -14,7 +14,10 @@ export function BackPop() {
const state = location.state as StateWithPrevious;
const backPath = () => (state?.previous ? state?.previous : "/");
// If there's no previous state want to just go back one level, basically ../
const newBackPath = location.pathname.split("/").slice(0, -1).join("/");
const backPath = () => (state?.previous ? state?.previous : newBackPath);
return (
<BackButton