aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2024-04-29 11:20:23 +0200
committersonartech <sonartech@sonarsource.com>2024-05-02 20:02:38 +0000
commitde2bda2ab67b29a71f1648e2afc0f12410ef8a71 (patch)
treecc31dd87e91d29e544efb5746512d2b02148b026 /server/sonar-web/src/main
parent23e049f0b7dcb55c737944716b8f42783a72cdc7 (diff)
downloadsonarqube-de2bda2ab67b29a71f1648e2afc0f12410ef8a71.tar.gz
sonarqube-de2bda2ab67b29a71f1648e2afc0f12410ef8a71.zip
SONAR-20440 Update new code definition documentation links
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r--server/sonar-web/src/main/js/apps/create/project/components/NewCodeDefinitionSelection.tsx6
-rw-r--r--server/sonar-web/src/main/js/apps/projectNewCode/components/AppHeader.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/NewCodeDefinition.tsx2
-rw-r--r--server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsSuggestions.json2
-rw-r--r--server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionAnalysisWarning.tsx4
5 files changed, 11 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/create/project/components/NewCodeDefinitionSelection.tsx b/server/sonar-web/src/main/js/apps/create/project/components/NewCodeDefinitionSelection.tsx
index 30acdce33c6..12389b26b7c 100644
--- a/server/sonar-web/src/main/js/apps/create/project/components/NewCodeDefinitionSelection.tsx
+++ b/server/sonar-web/src/main/js/apps/create/project/components/NewCodeDefinitionSelection.tsx
@@ -215,7 +215,11 @@ export default function NewCodeDefinitionSelection(props: Props) {
id="onboarding.create_project.new_code_definition.description"
values={{
link: (
- <Link to={getDocUrl('/project-administration/defining-new-code/')}>
+ <Link
+ to={getDocUrl(
+ '/project-administration/clean-as-you-code-settings/defining-new-code/',
+ )}
+ >
{translate('onboarding.create_project.new_code_definition.description.link')}
</Link>
),
diff --git a/server/sonar-web/src/main/js/apps/projectNewCode/components/AppHeader.tsx b/server/sonar-web/src/main/js/apps/projectNewCode/components/AppHeader.tsx
index 3155d4dc496..c8be13dc973 100644
--- a/server/sonar-web/src/main/js/apps/projectNewCode/components/AppHeader.tsx
+++ b/server/sonar-web/src/main/js/apps/projectNewCode/components/AppHeader.tsx
@@ -29,7 +29,7 @@ export interface AppHeaderProps {
export default function AppHeader(props: AppHeaderProps) {
const { canAdmin } = props;
- const toUrl = useDocUrl('/project-administration/defining-new-code/');
+ const toUrl = useDocUrl('/project-administration/clean-as-you-code-settings/defining-new-code/');
return (
<header className="sw-mt-8 sw-mb-4">
diff --git a/server/sonar-web/src/main/js/apps/settings/components/NewCodeDefinition.tsx b/server/sonar-web/src/main/js/apps/settings/components/NewCodeDefinition.tsx
index 6ee818fdb16..77f8b8ef96e 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/NewCodeDefinition.tsx
+++ b/server/sonar-web/src/main/js/apps/settings/components/NewCodeDefinition.tsx
@@ -102,7 +102,7 @@ export default function NewCodeDefinition() {
id="settings.new_code_period.description3"
values={{
link: (
- <DocumentationLink to="/project-administration/defining-new-code/">
+ <DocumentationLink to="/project-administration/clean-as-you-code-settings/defining-new-code/">
{translate('settings.new_code_period.description3.link')}
</DocumentationLink>
),
diff --git a/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsSuggestions.json b/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsSuggestions.json
index 08d459b14ae..8901c50403c 100644
--- a/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsSuggestions.json
+++ b/server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsSuggestions.json
@@ -55,7 +55,7 @@
"project_activity": [],
"project_baseline": [
{
- "link": "/project-administration/defining-new-code/",
+ "link": "/project-administration/clean-as-you-code-settings/defining-new-code/",
"text": "Defining New Code"
}
],
diff --git a/server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionAnalysisWarning.tsx b/server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionAnalysisWarning.tsx
index 71d95cda23d..95fe198617c 100644
--- a/server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionAnalysisWarning.tsx
+++ b/server/sonar-web/src/main/js/components/new-code-definition/NewCodeDefinitionAnalysisWarning.tsx
@@ -23,7 +23,9 @@ import { useDocUrl } from '../../helpers/docs';
import { translate } from '../../helpers/l10n';
export default function NewCodeDefinitionAnalysisWarning() {
- const toStatic = useDocUrl('/project-administration/defining-new-code/');
+ const toStatic = useDocUrl(
+ '/project-administration/clean-as-you-code-settings/defining-new-code/',
+ );
return (
<FlagMessage variant="warning" className="sw-mb-4 sw-max-w-[800px]">
<div>