Skip to content
Shopware

useNavigationSearch

useNavigationSearch

Composable to get search for SeoUrl entity for given path.

Types

ts
export function useNavigationSearch(): UseNavigationSearchReturn

source code

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>;
};

source code