diff --git a/src/common/components/static/static-navbar.tsx b/src/common/components/static/static-navbar.tsx
index 3ca4372c859..e6f0479fada 100644
--- a/src/common/components/static/static-navbar.tsx
+++ b/src/common/components/static/static-navbar.tsx
@@ -11,7 +11,7 @@ export const StaticNavbar = ({ fullVersionUrl }: Props) => {
(
const queryKey =
typeof initialOrPath === "string"
- ? makePath(initialOrPath, author!!, permlink!!)
- : makePath(initialOrPath.category, initialOrPath.author, initialOrPath.permlink);
+ ? makePath("", author!!, permlink!!)
+ : makePath("", initialOrPath.author, initialOrPath.permlink);
const query = useQuery(
[QueryIdentifiers.ENTRY, queryKey],
@@ -166,7 +166,7 @@ export function useEntryCache(
if (response) {
updateCache([response]);
}
- return entry;
+ return response;
} else if (!entry) {
return initialOrPath as T;
}