Wocart

@wocart/storefront v3.1.0


@wocart/storefront / index / alternateLinks

Function: alternateLinks()

alternateLinks(pathname, routing, origin): object[]

Every published language's URL for one page, primary first, plus x-default (the primary) — the <link rel="alternate" hreflang> set. pathname is the page's unprefixed path; origin makes the URLs absolute, as search engines require. None for a page that exists in the primary language only.

Parameters

pathname

string

routing

LocaleRouting

origin

string

Returns

object[]