diff --git a/components/links-content.tsx b/components/links-content.tsx index 3917507..ef8ecdf 100644 --- a/components/links-content.tsx +++ b/components/links-content.tsx @@ -14,6 +14,7 @@ import { } from "poyraz-ui/atoms"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "poyraz-ui/molecules"; import { + getResumeHref, LINK_DIRECTORY, LINK_DIRECTORY_CATEGORIES, SOCIAL_LINKS, @@ -158,7 +159,7 @@ export function LinksContent() {
{TOP_ICON_LINKS.map((item) => { - const href = item.id === "cv" ? `/resume-${locale}.pdf` : item.href; + const href = item.id === "cv" ? getResumeHref(locale) : item.href; return ( {filteredItems.map((item) => { - const href = item.id === "cv" ? `/resume-${locale}.pdf` : item.href; + const href = item.id === "cv" ? getResumeHref(locale) : item.href; const isStaticOrExternal = item.external || item.id === "rss" || item.id === "cv" || href.endsWith(".xml") || href.endsWith(".pdf"); const CardContent = ( diff --git a/components/site-navbar.tsx b/components/site-navbar.tsx index eb19e3f..d3be3a2 100644 --- a/components/site-navbar.tsx +++ b/components/site-navbar.tsx @@ -26,7 +26,7 @@ import { SheetTrigger, } from "poyraz-ui/molecules"; import { useKeyboardShortcutLabel } from "@/lib/use-keyboard-shortcut-label"; -import { NAV_LINKS, SOCIAL_LINKS, TOP_ICON_LINKS } from "@/lib/links"; +import { getResumeHref, NAV_LINKS, SOCIAL_LINKS, TOP_ICON_LINKS } from "@/lib/links"; const SearchCommand = dynamic( () => import("@/components/search-command").then((mod) => mod.SearchCommand), @@ -58,7 +58,7 @@ export function SiteNavbar() {
{TOP_ICON_LINKS.map((item) => { - const href = item.id === "cv" ? `/resume-${locale}.pdf` : item.href; + const href = item.id === "cv" ? getResumeHref(locale) : item.href; return (