From 50a9b909a0fb11dc125c74f5651ced5b1aa17599 Mon Sep 17 00:00:00 2001 From: kyle-ssg Date: Wed, 8 May 2024 14:50:01 +0100 Subject: [PATCH] Fix codehelp docs links --- frontend/web/components/CodeHelp.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/frontend/web/components/CodeHelp.js b/frontend/web/components/CodeHelp.js index 8f33f9f4ce5b..72a41dbeaaae 100644 --- a/frontend/web/components/CodeHelp.js +++ b/frontend/web/components/CodeHelp.js @@ -46,21 +46,23 @@ const getGithubLink = (key) => { const getDocsLink = (key) => { switch (key) { case '.NET': - return 'https://docs.flagsmith.com/clients/dotnet/' + return 'https://docs.flagsmith.com/clients/server-side?language=dotnet' + case 'curl': + return 'https://docs.flagsmith.com/clients/rest' case 'Flutter': return 'https://docs.flagsmith.com/clients/flutter/' case 'Go': - return 'https://docs.flagsmith.com/clients/go/' + return 'https://docs.flagsmith.com/clients/server-side?language=go' case 'Java': - return 'https://docs.flagsmith.com/clients/java/' + return 'https://docs.flagsmith.com/clients/server-side?language=java' case 'JavaScript': return 'https://docs.flagsmith.com/clients/javascript/' case 'Node JS': - return 'https://docs.flagsmith.com/clients/node/' + return 'https://docs.flagsmith.com/clients/server-side?language=nodejs' case 'PHP': - return 'https://docs.flagsmith.com/clients/php/' + return 'https://docs.flagsmith.com/clients/server-side?language=php' case 'Python': - return 'https://docs.flagsmith.com/clients/python/' + return 'https://docs.flagsmith.com/clients/server-side?language=python' case 'REST': return null case 'React': @@ -68,9 +70,9 @@ const getDocsLink = (key) => { case 'React Native': return 'https://docs.flagsmith.com/clients/react' case 'Ruby': - return 'https://docs.flagsmith.com/clients/ruby/' + return 'https://docs.flagsmith.com/clients/server-side?language=ruby' case 'Rust': - return 'https://docs.flagsmith.com/clients/rust/' + return 'https://docs.flagsmith.com/clients/server-side?language=rust' case 'iOS': return 'https://docs.flagsmith.com/clients/ios/' case 'Next.js':