This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new c869167  fix: document link error for plugins serverless-pre-function 
and serverless-pre-function (#1297)
c869167 is described below

commit c869167f42377bdef76acfcb8d9af2a69e58fec3
Author: Kishani Kandasamy <[email protected]>
AuthorDate: Sat Jan 16 16:03:54 2021 +0530

    fix: document link error for plugins serverless-pre-function and 
serverless-pre-function (#1297)
    
    * fix#1260
    
    * Update PluginDetail.tsx
    
    Co-authored-by: 琚致远 <[email protected]>
---
 web/src/components/Plugin/PluginDetail.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/web/src/components/Plugin/PluginDetail.tsx 
b/web/src/components/Plugin/PluginDetail.tsx
index c14f080..4401bab 100644
--- a/web/src/components/Plugin/PluginDetail.tsx
+++ b/web/src/components/Plugin/PluginDetail.tsx
@@ -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}
             >

Reply via email to