1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-09 01:17:06 +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:
Thomas Heartman 2022-12-06 08:32:42 +00:00 committed by GitHub
parent 47ec2ffcbf
commit 8c42fbf34b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -339,7 +339,7 @@ export const EnvironmentVariantModal = ({
modal modal
title={editing ? 'Edit variant' : 'Add variant'} 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." 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" documentationLinkLabel="Feature toggle variants documentation"
formatApiCode={formatApiCode} formatApiCode={formatApiCode}
loading={!open} loading={!open}

View File

@ -132,7 +132,7 @@ export const EnvironmentVariantsCard = ({
ensure consistent traffic allocation ensure consistent traffic allocation
across variants.{' '} across variants.{' '}
<a <a
href="https://docs.getunleash.io/advanced/toggle_variants" href="https://docs.getunleash.io/reference/feature-toggle-variants"
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
> >

View File

@ -73,7 +73,7 @@ const webhookDefinition: IAddonDefinition = {
"timestamp": "{{event.data.createdAt}}" "timestamp": "{{event.data.createdAt}}"
}`, }`,
description: 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', type: 'textfield',
required: false, required: false,
sensitive: false, sensitive: false,

View File

@ -183,6 +183,7 @@ module.exports = {
from: [ from: [
'/toggle_variants', '/toggle_variants',
'/advanced/feature_toggle_variants', '/advanced/feature_toggle_variants',
'/advanced/toggle_variants',
], ],
to: '/reference/feature-toggle-variants', to: '/reference/feature-toggle-variants',
}, },
@ -451,7 +452,7 @@ module.exports = {
to: '/reference/api/legacy/unleash/admin/context', 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', to: '/reference/api/legacy/unleash/admin/events',
}, },
{ {