Fix deleted page redirects
Summary: The redirects we added inline in the deleted pages don't work when there's a baseUrl. This is because it's the standard react-router Redirect component, which knows nothing about docusaurus sites. We could get around that by adding `useBaseUrl()` calls around all of them, but that's not great. So changing to using declarative redirects instead, where they are all put in config. This automatically takes care of base urls, and reduces copy-pasted code. Reviewed By: passy Differential Revision: D25780599 fbshipit-source-id: c67d3643ab28f0fcd440904baf54c67687781686
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8a8b979f66
commit
c460cb767f
@@ -13,7 +13,7 @@ This page describes the JavaScript API that is used to implement plugins inside
|
||||
|
||||
</div>
|
||||
|
||||
Provided a plugin is setup as defined in [Desktop Plugin Development](js-setup), the basic requirement of a Flipper plugin is that `index.tsx` exports a default class that extends `FlipperPlugin`.
|
||||
Provided a plugin is setup as defined in [Desktop Plugin Development](desktop-plugin-structure.mdx), the basic requirement of a Flipper plugin is that `index.tsx` exports a default class that extends `FlipperPlugin`.
|
||||
|
||||
`FlipperPlugin` is an extension of `React.Component` with extra Flipper-related functionality. This means to define the UI of your plugin, you just need to implement this React component.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user