Skip to content

Commit fffbb3e

Browse files
committed
update logic
1 parent b94ad3c commit fffbb3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Middleware/CacheTracker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function setupTagHooks()
181181
});
182182

183183
Tags\Nav::hook('init', function ($value, $next) use ($self) {
184-
$handle = 'nav:'.$this->params->get('handle', Str::after($this->tag, 'nav:'));
184+
$handle = 'nav:'.$this->params->get('handle', $this->tag != 'nav:index' ? Str::after($this->tag, 'nav:') : 'collection::pages');
185185
$self->addContentTag($handle);
186186

187187
return $next($value);

0 commit comments

Comments
 (0)