Appearance
useNavigationSearch ​
Definition ​
Composable to get search for SeoUrl entity for given path.
Basic usage ​
ts
const { resolvePath } = useNavigationSearch();
Signature ​
ts
export function useNavigationSearch(): UseNavigationSearchReturn
Return type ​
See UseNavigationSearchReturn
ts
export type UseNavigationSearchReturn = {
/**
* Get {@link SeoUrl} entity for given path
* @example resolvePath("/my-category/my-product") or resolvePath("/") for home page
*/
resolvePath(path: string): Promise<Schemas["SeoUrl"] | null>;
};
Methods ​
Name | Type | Description |
---|---|---|
resolvePath | Promise< | null> | Get {@link SeoUrl} entity for given path |