diff --git a/components/Cms/Element/CmsElementCategoryNavigation.vue b/components/Cms/Element/CmsElementCategoryNavigation.vue index 657a5231..d58fb12a 100644 --- a/components/Cms/Element/CmsElementCategoryNavigation.vue +++ b/components/Cms/Element/CmsElementCategoryNavigation.vue @@ -26,7 +26,7 @@ const listingStore = useListingStore(route.path === '/search' ? 'search' : 'cate :to="getCategoryRoute(item)" class="text-lg" :class="{ 'font-bold': isActive(item.seoUrls) }" - @click="listingStore.isLoading = true;" + @click="listingStore.isLoading = !isActive(item.seoUrls, true);" > {{ getTranslatedProperty(item, 'name') }} @@ -40,7 +40,7 @@ const listingStore = useListingStore(route.path === '/search' ? 'search' : 'cate {{ getTranslatedProperty(child, 'name') }} diff --git a/components/Navigation/NavigationLink.vue b/components/Navigation/NavigationLink.vue index 7ed6edc6..86e2e5b2 100644 --- a/components/Navigation/NavigationLink.vue +++ b/components/Navigation/NavigationLink.vue @@ -59,7 +59,7 @@ const listingStore = useListingStore(route.path === '/search' ? 'search' : 'cate :format="!isExternalLink" class="block transition-all hover:text-brand-primary" :class="[classes, isActive(navigationElement.seoUrls, activeWithExactMatch) ? activeClasses : '']" - @click="trackNavigation(navigationElement.level ? navigationElement.level - 1 : 0, getTranslatedProperty(navigationElement, 'name')); listingStore.isLoading = true;" + @click="trackNavigation(navigationElement.level ? navigationElement.level - 1 : 0, getTranslatedProperty(navigationElement, 'name')); listingStore.isLoading = !isActive(navigationElement.seoUrls, true);" >