You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2021/09/15 15:15:08 UTC
[apisix-website] branch master updated: fix: wrong plugin doc link
in Plugin hub (#601)
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-website.git
The following commit(s) were added to refs/heads/master by this push:
new 2567319 fix: wrong plugin doc link in Plugin hub (#601)
2567319 is described below
commit 25673190caa94a361d969711e72abd5e8c22123c
Author: Baoyuan <ba...@gmail.com>
AuthorDate: Wed Sep 15 10:15:03 2021 -0500
fix: wrong plugin doc link in Plugin hub (#601)
---
website/src/pages/plugins.js | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/website/src/pages/plugins.js b/website/src/pages/plugins.js
index f2377e1..4d3d9dd 100644
--- a/website/src/pages/plugins.js
+++ b/website/src/pages/plugins.js
@@ -159,9 +159,15 @@ function Plugins(props) {
const plugins = siteConfig.customFields.plugins.map((section) => {
const pluginCards = section.plugins.map((plugin) => {
+ let pluginUrl;
+ if (plugin.name.indexOf('serverless') !== -1) {
+ pluginUrl = 'serverless';
+ } else {
+ pluginUrl = plugin.name;
+ }
return (
<div key={plugin.name}>
- <PluginCard href={`https://apisix.apache.org/docs/apisix/plugins/${plugin.name}`} target="_blank">
+ <PluginCard href={`https://apisix.apache.org/docs/apisix/plugins/${pluginUrl}`} target="_blank">
<PluginIcon>
{plugin.useDefaultIcon ?
<img className="plugin-logo shadow default" src={'/img/plugin/default-icon.png'} alt={plugin.name} /> :