Search...
links
Gets the page's SEO-related link tags.
Description
Use the links
property to get a page's SEO-related link tags which provide additional
SEO information about your page. For example, the tags may contain a link to a canonical
or alternate version of the current page.
Note: You should always invoke the
wixSeoFrontend.links
getter outside of theonReady()
event handler to ensure receiving the proper response.
Type:
Array<Link>Read Only
NAME
TYPE
DESCRIPTION
rel
string
The relationship of the linked resource to the current page.
href
string
The URL of the linked resource.
Related Content:
Was this helpful?
Get a page's link tags
Copy Code
1import wixSeoFrontend from 'wix-seo-frontend';23// ...45let links = wixSeoFrontend.links;67/* links:8 *9 * [10 * {11 * "rel": "canonical",12 * "href": "http://mysite.com/canonical_version"13 * }, {14 * "rel": "author",15 * "href": "http://mysite.com/janedoe"16 * }17 * ]18 */