Function createHref

  • Combined the needed URL parts into a URL's full href.

    Parameters

    • __namedParameters: Readonly<Pick<{
          fullPath: string;
          hash: string;
          host: string;
          hostname: string;
          href: string;
          origin: string;
          password: string;
          pathname: string;
          paths: string[];
          port: string;
          protocol: string;
          search: string;
          searchParams: Required<Record<string, string[]>>;
          username: string;
      },
          | "protocol"
          | "username"
          | "password"
          | "hostname"
          | "port"
          | "pathname"
          | "search"
          | "hash">>

    Returns string