From fb78d5dc96a610b210112e5940b65d8ddcd9b816 Mon Sep 17 00:00:00 2001 From: Joshua Lester Date: Tue, 8 Oct 2024 14:18:31 -0700 Subject: [PATCH] Ignores going to previous page when at /home --- EssentialCSharp.Web/wwwroot/js/site.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/EssentialCSharp.Web/wwwroot/js/site.js b/EssentialCSharp.Web/wwwroot/js/site.js index c76f5c54..2271fda2 100644 --- a/EssentialCSharp.Web/wwwroot/js/site.js +++ b/EssentialCSharp.Web/wwwroot/js/site.js @@ -152,7 +152,10 @@ const app = createApp({ } function goToPrevious() { - window.location.href = "/" + PREVIOUS_PAGE; + debugger; + if (!window.location.href.endsWith("/home")) { + window.location.href = "/" + PREVIOUS_PAGE; + } } function goToNext() { window.location.href = "/" + NEXT_PAGE;