Use href instead of 'to' for external links

Summary: 'to' is for internal pages. href is for generic links, and has tweaks such as opening in new tabs and making sure sites work in iframes.

Reviewed By: passy

Differential Revision: D21550098

fbshipit-source-id: 306dd92378ca721c435b9f4f031136fc421cbb81
This commit is contained in:
John Knox
2020-05-13 09:31:07 -07:00
committed by Facebook GitHub Bot
parent 6355076c90
commit 8e60f4abbb

View File

@@ -46,15 +46,15 @@ const siteConfig = {
{label: 'Core Plugins', to: 'docs/features/index'},
{
label: 'Community Plugins',
to: 'https://www.npmjs.com/search?q=keywords:flipper-plugin',
href: 'https://www.npmjs.com/search?q=keywords:flipper-plugin',
},
],
},
{
title: 'More',
items: [
{label: 'Twitter', to: 'https://twitter.com/flipper_fb'},
{label: 'GitHub', to: repoUrl},
{label: 'Twitter', href: 'https://twitter.com/flipper_fb'},
{label: 'GitHub', href: repoUrl},
],
},
],