Skip to content

Commit 5c45a19

Browse files
committed
debug: add logging for nav
1 parent 6e96f1d commit 5c45a19

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/Header.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const ctaLinks = {
5353
navigationLinks.map((link) => {
5454
const hrefStr = String(link.href);
5555
const isActive = hrefStr.replace(/\/$/, '') === pathname;
56+
console.log('[DEBUG] hrefStr:', hrefStr, 'pathname:', pathname, 'isActive:', isActive);
5657
return (
5758
<li>
5859
<a

0 commit comments

Comments
 (0)