mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-15 01:16:22 +02:00
Docs(fix): add more (missing) redirects, fix links (#2592)
## What
This PR fixes some broken links we had in the application. It also adds
redirects for those links so that they should work in the future.
## Why
Because it's important to have links that work 💁
This commit is contained in:
parent
47ec2ffcbf
commit
8c42fbf34b
@ -339,7 +339,7 @@ export const EnvironmentVariantModal = ({
|
||||
modal
|
||||
title={editing ? 'Edit variant' : 'Add variant'}
|
||||
description="Variants allows you to return a variant object if the feature toggle is considered enabled for the current request."
|
||||
documentationLink="https://docs.getunleash.io/advanced/toggle_variants"
|
||||
documentationLink="https://docs.getunleash.io/reference/feature-toggle-variants"
|
||||
documentationLinkLabel="Feature toggle variants documentation"
|
||||
formatApiCode={formatApiCode}
|
||||
loading={!open}
|
||||
|
@ -132,7 +132,7 @@ export const EnvironmentVariantsCard = ({
|
||||
ensure consistent traffic allocation
|
||||
across variants.{' '}
|
||||
<a
|
||||
href="https://docs.getunleash.io/advanced/toggle_variants"
|
||||
href="https://docs.getunleash.io/reference/feature-toggle-variants"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
|
@ -73,7 +73,7 @@ const webhookDefinition: IAddonDefinition = {
|
||||
"timestamp": "{{event.data.createdAt}}"
|
||||
}`,
|
||||
description:
|
||||
"(Optional) You may format the body using a mustache template. If you don't specify anything, the format will similar to the events format (https://docs.getunleash.io/docs/api/admin/events)",
|
||||
"(Optional) You may format the body using a mustache template. If you don't specify anything, the format will similar to the events format (https://docs.getunleash.io/reference/api/legacy/unleash/admin/events)",
|
||||
type: 'textfield',
|
||||
required: false,
|
||||
sensitive: false,
|
||||
|
@ -183,6 +183,7 @@ module.exports = {
|
||||
from: [
|
||||
'/toggle_variants',
|
||||
'/advanced/feature_toggle_variants',
|
||||
'/advanced/toggle_variants',
|
||||
],
|
||||
to: '/reference/feature-toggle-variants',
|
||||
},
|
||||
@ -451,7 +452,7 @@ module.exports = {
|
||||
to: '/reference/api/legacy/unleash/admin/context',
|
||||
},
|
||||
{
|
||||
from: '/api/admin/events',
|
||||
from: [ '/api/admin/events', '/docs/api/admin/events' ],
|
||||
to: '/reference/api/legacy/unleash/admin/events',
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user