@@ -33,6 +33,7 @@ | |||
"/user-guide/fixing-the-water-leak/", | |||
"/user-guide/keyboard-shortcuts/", | |||
"/user-guide/quality-gates/", | |||
"/instance-administration/quality-profiles/", | |||
"/user-guide/metric-definitions/", | |||
"/user-guide/security-reports/", | |||
"/user-guide/user-account/" |
@@ -57,10 +57,10 @@ export default function GlobalFooterSonarCloud() { | |||
</Link> | |||
</li> | |||
<li className="page-footer-menu-item"> | |||
<Link to="/documentation/privacy">{translate('footer.privacy')}</Link> | |||
<Link to="/documentation/privacy/">{translate('footer.privacy')}</Link> | |||
</li> | |||
<li className="page-footer-menu-item"> | |||
<Link to="/documentation/security">{translate('footer.security')}</Link> | |||
<Link to="/documentation/security/">{translate('footer.security')}</Link> | |||
</li> | |||
<li className="page-footer-menu-item"> | |||
<a |
@@ -87,7 +87,7 @@ it('should render only the children', async () => { | |||
getWrapper({ | |||
canAdmin: false, | |||
currentUser: { ...LOGGED_IN_USER, showOnboardingTutorial: true }, | |||
location: { pathname: 'documentation/index' } | |||
location: { pathname: 'documentation/' } | |||
}) | |||
); | |||
}); |
@@ -61,7 +61,7 @@ exports[`should render correctly 1`] = ` | |||
<Link | |||
onlyActiveOnIndex={false} | |||
style={Object {}} | |||
to="/documentation/privacy" | |||
to="/documentation/privacy/" | |||
> | |||
footer.privacy | |||
</Link> | |||
@@ -72,7 +72,7 @@ exports[`should render correctly 1`] = ` | |||
<Link | |||
onlyActiveOnIndex={false} | |||
style={Object {}} | |||
to="/documentation/security" | |||
to="/documentation/security/" | |||
> | |||
footer.security | |||
</Link> |
@@ -99,12 +99,12 @@ export default function Footer() { | |||
</Link> | |||
</li> | |||
<li className="spacer-top"> | |||
<Link className="sc-footer-link" to="/documentation/privacy"> | |||
<Link className="sc-footer-link" to="/documentation/privacy/"> | |||
Privacy | |||
</Link> | |||
</li> | |||
<li className="spacer-top"> | |||
<Link className="sc-footer-link" to="/documentation/security"> | |||
<Link className="sc-footer-link" to="/documentation/security/"> | |||
Security | |||
</Link> | |||
</li> |
@@ -36,7 +36,7 @@ export default function Pricing() { | |||
From <span className="sc-pricing-price">10€</span> | |||
/mo | |||
</strong> | |||
<Link className="sc-news-link" to="/documentation/sonarcloud-pricing"> | |||
<Link className="sc-news-link" to="/documentation/sonarcloud-pricing/"> | |||
see prices | |||
</Link> | |||
</div> |
@@ -40,7 +40,7 @@ export default function Header(props: Props) { | |||
<Link | |||
className="spacer-left" | |||
target="_blank" | |||
to={{ pathname: '/documentation/analysis/background-tasks' }}> | |||
to={{ pathname: '/documentation/analysis/background-tasks/' }}> | |||
{translate('learn_more')} | |||
</Link> | |||
</p> |
@@ -40,7 +40,7 @@ export default function MembersPageHeader(props: Props) { | |||
id="organization.members.page.description" | |||
values={{ | |||
link: ( | |||
<Link to="/documentation/organizations/manage-team"> | |||
<Link to="/documentation/organizations/manage-team/"> | |||
{translate('organization.members.manage_a_team')} | |||
</Link> | |||
) |
@@ -27,7 +27,7 @@ exports[`should render 1`] = ` | |||
"link": <Link | |||
onlyActiveOnIndex={false} | |||
style={Object {}} | |||
to="/documentation/organizations/manage-team" | |||
to="/documentation/organizations/manage-team/" | |||
> | |||
organization.members.manage_a_team | |||
</Link>, |
@@ -103,7 +103,9 @@ export default class PageHeader extends React.PureComponent<Props, State> { | |||
<Link | |||
className="spacer-left" | |||
target="_blank" | |||
to={{ pathname: '/documentation/quality-profiles' }}> | |||
to={{ | |||
pathname: '/documentation/instance-administration/quality-profiles/' | |||
}}> | |||
{translate('learn_more')} | |||
</Link> | |||
</div> |
@@ -142,7 +142,7 @@ export default class App extends React.PureComponent<Props, State> { | |||
<Link | |||
className="spacer-left" | |||
target="_blank" | |||
to={{ pathname: '/documentation/security-reports' }}> | |||
to={{ pathname: '/documentation/user-guide/security-reports/' }}> | |||
{translate('learn_more')} | |||
</Link> | |||
<p className="alert alert-info spacer-top display-inline-block"> |
@@ -106,7 +106,7 @@ export default class VulnerabilityList extends React.PureComponent<Props, State> | |||
<Link | |||
className="spacer-left" | |||
target="_blank" | |||
to={{ pathname: '/documentation/security-reports' }}> | |||
to={{ pathname: '/documentation/user-guide/security-reports/' }}> | |||
Security Reports | |||
</Link> | |||
<DetachIcon |
@@ -32,7 +32,7 @@ exports[`handle checkbox for cwe display 1`] = ` | |||
target="_blank" | |||
to={ | |||
Object { | |||
"pathname": "/documentation/security-reports", | |||
"pathname": "/documentation/user-guide/security-reports/", | |||
} | |||
} | |||
> | |||
@@ -142,7 +142,7 @@ exports[`handle checkbox for cwe display 2`] = ` | |||
target="_blank" | |||
to={ | |||
Object { | |||
"pathname": "/documentation/security-reports", | |||
"pathname": "/documentation/user-guide/security-reports/", | |||
} | |||
} | |||
> | |||
@@ -295,7 +295,7 @@ exports[`renders owaspTop10 1`] = ` | |||
target="_blank" | |||
to={ | |||
Object { | |||
"pathname": "/documentation/security-reports", | |||
"pathname": "/documentation/user-guide/security-reports/", | |||
} | |||
} | |||
> | |||
@@ -405,7 +405,7 @@ exports[`renders sansTop25 1`] = ` | |||
target="_blank" | |||
to={ | |||
Object { | |||
"pathname": "/documentation/security-reports", | |||
"pathname": "/documentation/user-guide/security-reports/", | |||
} | |||
} | |||
> | |||
@@ -515,7 +515,7 @@ exports[`renders with cwe 1`] = ` | |||
target="_blank" | |||
to={ | |||
Object { | |||
"pathname": "/documentation/security-reports", | |||
"pathname": "/documentation/user-guide/security-reports/", | |||
} | |||
} | |||
> |
@@ -37,7 +37,7 @@ export default function AnalyzeTutorialSuggestion({ almId }: { almId?: string }) | |||
<a | |||
href={ | |||
getBaseUrl() + | |||
'/documentation/integrations/bitbucketcloud#analyzing-with-pipelines' | |||
'/documentation/integrations/bitbucketcloud/#analyzing-with-pipelines' | |||
} | |||
target="_blank"> | |||
{translate('onboarding.project_analysis.guide_to_integrate_piplines')} | |||
@@ -76,7 +76,7 @@ export default function AnalyzeTutorialSuggestion({ almId }: { almId?: string }) | |||
id={'onboarding.project_analysis.simply_link'} | |||
values={{ | |||
link: ( | |||
<a href={getBaseUrl() + '/documentation/integrations/vsts'} target="_blank"> | |||
<a href={getBaseUrl() + '/documentation/integrations/vsts/'} target="_blank"> | |||
{translate('onboarding.project_analysis.guide_to_integrate_vsts')} | |||
</a> | |||
) |
@@ -16,7 +16,7 @@ exports[`renders bitbucket suggestions correctly 1`] = ` | |||
values={ | |||
Object { | |||
"link": <a | |||
href="/documentation/integrations/bitbucketcloud#analyzing-with-pipelines" | |||
href="/documentation/integrations/bitbucketcloud/#analyzing-with-pipelines" | |||
target="_blank" | |||
> | |||
onboarding.project_analysis.guide_to_integrate_piplines | |||
@@ -66,7 +66,7 @@ exports[`renders vsts suggestions correctly 1`] = ` | |||
values={ | |||
Object { | |||
"link": <a | |||
href="/documentation/integrations/vsts" | |||
href="/documentation/integrations/vsts/" | |||
target="_blank" | |||
> | |||
onboarding.project_analysis.guide_to_integrate_vsts |
@@ -51,7 +51,7 @@ export default class TeamOnboardingModal extends React.PureComponent<Props> { | |||
id="onboarding.team.how_to_join" | |||
values={{ | |||
link: ( | |||
<Link onClick={this.props.onFinish} to="/documentation/organizations/manage-team"> | |||
<Link onClick={this.props.onFinish} to="/documentation/organizations/manage-team/"> | |||
{translate('as_explained_here')} | |||
</Link> | |||
) |
@@ -39,7 +39,7 @@ exports[`renders correctly 1`] = ` | |||
onClick={[MockFunction]} | |||
onlyActiveOnIndex={false} | |||
style={Object {}} | |||
to="/documentation/organizations/manage-team" | |||
to="/documentation/organizations/manage-team/" | |||
> | |||
as_explained_here | |||
</Link>, |
@@ -41,7 +41,9 @@ export default function PageHeader({ children, loading }: Props) { | |||
id={'webhooks.description'} | |||
values={{ | |||
url: ( | |||
<Link to="/documentation/webhooks">{translate('webhooks.documentation_link')}</Link> | |||
<Link to="/documentation/project-administration/webhooks/"> | |||
{translate('webhooks.documentation_link')} | |||
</Link> | |||
) | |||
}} | |||
/> |
@@ -24,7 +24,7 @@ exports[`should render correctly 1`] = ` | |||
"url": <Link | |||
onlyActiveOnIndex={false} | |||
style={Object {}} | |||
to="/documentation/webhooks" | |||
to="/documentation/project-administration/webhooks/" | |||
> | |||
webhooks.documentation_link | |||
</Link>, |