Skip to content

Commit

Permalink
fix: document link error for plugins serverless-pre-function and serv…
Browse files Browse the repository at this point in the history
…erless-pre-function (#1297)

* fix#1260

* Update PluginDetail.tsx

Co-authored-by: 琚致远 <[email protected]>
  • Loading branch information
KishaniKandasamy and juzhiyuan authored Jan 16, 2021
1 parent aa6aa6b commit c869167
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/src/components/Plugin/PluginDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ const PluginDetail: React.FC<Props> = ({
type="default"
icon={<LinkOutlined />}
onClick={() => {
window.open(`https://github.com/apache/apisix/blob/master/doc/plugins/${name}.md`);
if (name.startsWith("serverless")) {
window.open('https://github.com/apache/apisix/blob/master/doc/plugins/serverless.md');
} else {
window.open(`https://github.com/apache/apisix/blob/master/doc/plugins/${name}.md`);
}
}}
key={1}
>
Expand Down

0 comments on commit c869167

Please sign in to comment.