Files
Montech_Landing/apps/landing/composables/useSectionHref.ts
T
MahdiandCursor b0088c35d1 Replace the landing with the artifact design and rebuild the admin in Ant Design.
Adds consultation leads, section editors, and the one-time content reset for this release.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 20:36:06 +03:30

9 lines
309 B
TypeScript

/** In-page anchors (`#solutions`) work on the home page; elsewhere they must point back to `/`. */
export function useSectionHref() {
const route = useRoute();
return (href: string) => {
if (!href.startsWith("#") || route.path === "/") return href;
return href === "#" ? "/" : `/${href}`;
};
}