From 814c25024bf68206ed49d5373e443077a2b0b986 Mon Sep 17 00:00:00 2001 From: "Amy J. Ko" Date: Mon, 22 Jul 2024 14:29:18 -0700 Subject: [PATCH] Fixed back button. --- src/routes/guide/Guide.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/guide/Guide.svelte b/src/routes/guide/Guide.svelte index 1f8fa9bdb..8dc0ea4f4 100644 --- a/src/routes/guide/Guide.svelte +++ b/src/routes/guide/Guide.svelte @@ -70,6 +70,7 @@ afterNavigate(() => { // Set the current locale. locale = getLocaleInURL(); + concept = getConceptFromURL(); const currentConcept = getConcept(concept); // Only update the path if the concept exists and is not already in the path. if ( @@ -81,7 +82,7 @@ path.set([currentConcept]); } // Only update if the path isn't already empty. - else if (currentConcept === null && $path.length !== 0) { + else if (currentConcept === undefined) { path.set([]); } });