Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/common/PluginsBlock.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const plugins = metadata
.map((p) => {
return {
...p,
link: `/plugins/${p.artifactId}${p.artifactId === `plugin-${p.name}` ? "" : `/${p.name}`}`,
// Logo links to the plugin group page (always 200). The previous
// `/${p.name}` suffix produced subgroup URLs that 404 for ~82 plugins
// and 301-redirect to this same group page, so we skip the hop.
link: `/plugins/${p.artifactId}`,
}
})

Expand Down
8 changes: 3 additions & 5 deletions src/components/common/PluginsBox.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,9 @@ const plugins = await Promise.all(
title: plugin.title,
name: plugin.name,
artifactId: plugin.artifactId,
link:
`/plugins/${plugin.artifactId}` +
(`plugin-${plugin.name}` != plugin.artifactId
? "/" + plugin.name
: ""),
// Link logos to the plugin group page (always 200) to avoid the
// 404 -> 301 hop the `/${plugin.name}` subgroup suffix caused for ~82 plugins.
link: `/plugins/${plugin.artifactId}`,
group: plugin.group,
}
}),
Expand Down
4 changes: 3 additions & 1 deletion src/components/features/core/EveryPlugin.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ try {
.filter((p) => p.artifactId && !excluded.test(p.artifactId))
.map((p) => ({
...p,
link: `/plugins/${p.artifactId}${p.artifactId === `plugin-${p.name}` ? "" : `/${p.name}`}`,
// Link logos to the plugin group page (always 200) to avoid the
// 404 -> 301 hop the `/${p.name}` subgroup suffix caused for ~82 plugins.
link: `/plugins/${p.artifactId}`,
}))
.sort(randomSortFunction)
.slice(0, 20)
Expand Down
19 changes: 12 additions & 7 deletions src/contents/redirects/plugins.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Specific redirects MUST come before the catch-all below: the middleware
# applies the FIRST matching rule (notFoundRedirect -> allEntries[0]), so any
# rule placed after the catch-all "/plugins/plugin-(...)" never fires.
- regexp: "/plugins/core/tasks/scripts/io.kestra.core.tasks.scripts.bash"
to: "/plugins/plugin-script-shell/io.kestra.plugin.scripts.shell.script"
- regexp: "/plugins/core/tasks/scripts/io.kestra.core.tasks.scripts.node"
Expand All @@ -6,15 +9,17 @@
to: "/plugins/plugin-script-python/io.kestra.plugin.scripts.python.script"
- regexp: "/plugins/core/triggers/io.kestra.core.models.triggers.types.webhook"
to: "/plugins/core/trigger/io.kestra.plugin.core.trigger.webhook"
- regexp: "/plugins/plugin-([^/]+).*"
to: "/plugins/plugin-$1"
- regexp: "/plugins/plugin-aws/io.kestra.plugin.aws.runner.batch"
to: "/plugins/plugin-ee-aws/io.kestra.plugin.ee.aws.runner.batch"
- regexp: " /plugins/plugin-azure/io.kestra.plugin.azure.runner.batch"
to: "/plugins/plugin-ee-azure/io.kestra.plugin.ee.azure.runner.batch"
to: "/plugins/plugin-ee-aws/aws-batch-task-runner/io.kestra.plugin.ee.aws.runner.batch"
- regexp: "/plugins/plugin-azure/io.kestra.plugin.azure.runner.batch"
to: "/plugins/plugin-ee-azure/azure-runner/io.kestra.plugin.ee.azure.runner.batch"
- regexp: "/plugins/plugin-gcp/io.kestra.plugin.gcp.runner.batch"
to: "/plugins/plugin-ee-gcp/io.kestra.plugin.ee.gcp.runner.batch"
to: "/plugins/plugin-ee-gcp/google-cloud-task-runner/io.kestra.plugin.ee.gcp.runner.batch"
- regexp: "/plugins/plugin-gcp/io.kestra.plugin.gcp.runner.cloudrun"
to: "/plugins/plugin-ee-gcp/io.kestra.plugin.ee.gcp.runner.cloudrun"
to: "/plugins/plugin-ee-gcp/google-cloud-task-runner/io.kestra.plugin.ee.gcp.runner.cloudrun"
- regexp: "/plugins/plugin-kubernetes/io.kestra.plugin.kubernetes.runner.kubernetes"
to: "/plugins/plugin-ee-kubernetes/io.kestra.plugin.ee.kubernetes.runner.kubernetes"
# Catch-all: any unknown plugin subgroup/task URL falls back to its group page.
# Keep this LAST so the specific rules above take precedence.
- regexp: "/plugins/plugin-([^/]+).*"
to: "/plugins/plugin-$1"
Loading