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:
committed by
Facebook GitHub Bot
parent
6355076c90
commit
8e60f4abbb
@@ -46,15 +46,15 @@ const siteConfig = {
|
|||||||
{label: 'Core Plugins', to: 'docs/features/index'},
|
{label: 'Core Plugins', to: 'docs/features/index'},
|
||||||
{
|
{
|
||||||
label: 'Community Plugins',
|
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',
|
title: 'More',
|
||||||
items: [
|
items: [
|
||||||
{label: 'Twitter', to: 'https://twitter.com/flipper_fb'},
|
{label: 'Twitter', href: 'https://twitter.com/flipper_fb'},
|
||||||
{label: 'GitHub', to: repoUrl},
|
{label: 'GitHub', href: repoUrl},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user