Adds consultation leads, section editors, and the one-time content reset for this release. Co-authored-by: Cursor <cursoragent@cursor.com>
9 lines
309 B
TypeScript
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}`;
|
|
};
|
|
}
|