mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: navbar selected link
This commit is contained in:
1 parent
a54ba78dbf
commit
53c0f48437
4 files changed
+10
-11
No files matched your search
@@ -142,10 +142,9 @@ const isBranchNamed =
|
||||
(branch) =>
|
||||
branch !== assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH),
|
||||
);
|
||||
// const selected = window.location.pathname.startsWith(
|
||||
// `/tools/${tool.id}`,
|
||||
// );
|
||||
const selected = false;
|
||||
const selected = Astro.url.pathname.startsWith(
|
||||
`/tools/${tool.id}`,
|
||||
);
|
||||
|
||||
if (unavailableOnBranch) return null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user