Skip to content

Commit 366ea4f

Browse files
committed
feat: add trailing slash to top-level page links
1 parent 0c4615f commit 366ea4f

File tree

8 files changed

+44
-35
lines changed

8 files changed

+44
-35
lines changed

src/components/pages/doc-welcome/cloud/cloud.view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const Cloud = (props) => {
99
isExternal,
1010
btnText,
1111
btnTarget,
12-
btnLink = '/cloud',
12+
btnLink = '/cloud/',
1313
} = props;
1414
const {
1515
file: {

src/components/pages/doc-welcome/features/doc-welcome-features.view.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ export const Features = () => {
2424

2525
<Trait className={styles.trait}>
2626
{t('welcome.features.scripting')}{' '}
27-
<Link className={'link'} to="/using-k6/modules">
27+
<Link className={'link'} to="/using-k6/modules/">
2828
{t('welcome.features.modules')}
2929
</Link>
3030
</Trait>
3131
<Trait className={styles.trait}>
32-
<Link className={'link'} to="/using-k6/checks">
32+
<Link className={'link'} to="/using-k6/checks/">
3333
{t('welcome.features.checks')}
3434
</Link>{' '}
3535
{t('welcome.features.and')}{' '}
36-
<Link className={'link'} to="/using-k6/thresholds">
36+
<Link className={'link'} to="/using-k6/thresholds/">
3737
{t('welcome.features.thresholds')}
3838
</Link>{' '}
3939
{t('welcome.features.testing')}

src/components/pages/doc-welcome/k6-does-not/k6-does-not.component.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@ export const K6DoesNot = () => {
2222
<p>{t('welcome.k6-does-not.browser.description')}</p>
2323
<p>
2424
{t('welcome.k6-does-not.browser.testing.text')}{' '}
25-
<Link className={'link'} to="/testing-guides/load-testing-websites">
25+
<Link
26+
className={'link'}
27+
to="/testing-guides/load-testing-websites/"
28+
>
2629
{t('welcome.k6-does-not.browser.testing.link')}
2730
</Link>
2831
. {t('welcome.k6-does-not.browser.recorded-session.text')}{' '}
2932
<Link
3033
className={'link'}
31-
to="/using-k6/session-recording-har-support"
34+
to="/using-k6/session-recording-har-support/"
3235
>
3336
{t('welcome.k6-does-not.browser.recorded-session.link')}
3437
</Link>
@@ -44,7 +47,7 @@ export const K6DoesNot = () => {
4447
{t('welcome.k6-does-not.nodejs.import.text1')}{' '}
4548
<Link
4649
className={'link'}
47-
to="/using-k6/modules#bundling-node-modules"
50+
to="/using-k6/modules/#bundling-node-modules"
4851
>
4952
{t('welcome.k6-does-not.nodejs.import.link')}
5053
</Link>{' '}

src/components/pages/doc-welcome/quickstart/quickstart.component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ export const Quickstart = () => {
1111
blockTitle: t('welcome.quickstart.title'),
1212
cardsData: [
1313
{
14-
to: '/getting-started/installation',
14+
to: '/getting-started/installation/',
1515
title: `🚀 ${t('welcome.quickstart.installation.title')}`,
1616
text: t('welcome.quickstart.installation.text'),
1717
},
1818
{
19-
to: '/getting-started/running-k6',
19+
to: '/getting-started/running-k6/',
2020
title: `🏎💨 ${t('welcome.quickstart.running-k6.title')}`,
2121
text: t('welcome.quickstart.running-k6.text'),
2222
},
2323
{
24-
to: '/getting-started/results-output',
24+
to: '/getting-started/results-output/',
2525
title: `⏱ ${t('welcome.quickstart.results-output.title')}`,
2626
text: t('welcome.quickstart.results-output.text'),
2727
},

src/components/pages/doc-welcome/use-cases/use-cases.view.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ export const UseCases = () => {
2323
{' ('}
2424
<Link
2525
className={'link'}
26-
to="/test-types/stress-testing#spike-testing-in-k6"
26+
to="/test-types/stress-testing#spike-testing-in-k6/"
2727
>
2828
spike
2929
</Link>
3030
,{' '}
31-
<Link className={'link'} to="/test-types/stress-testing">
31+
<Link className={'link'} to="/test-types/stress-testing/">
3232
stress
3333
</Link>
3434
,{' '}
35-
<Link className={'link'} to="/test-types/soak-testing">
35+
<Link className={'link'} to="/test-types/soak-testing/">
3636
soak tests
3737
</Link>
3838
{') '}
@@ -47,7 +47,7 @@ export const UseCases = () => {
4747
{t('welcome.use-cases.performance-monitoring.description1')}{' '}
4848
<Link
4949
className={'link'}
50-
to="/testing-guides/automated-performance-testing"
50+
to="/testing-guides/automated-performance-testing/"
5151
>
5252
{t('welcome.use-cases.performance-monitoring.testing-automation')}
5353
</Link>

src/templates/docs/cloud.js

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
8787
Scale tests from{' '}
8888
<Link
8989
to={
90-
'/cloud/creating-and-running-a-test/cloud-tests-from-the-cli#list-of-supported-load-zones'
90+
'/cloud/creating-and-running-a-test/cloud-tests-from-the-cli/#list-of-supported-load-zones'
9191
}
9292
>
9393
multiple locations
@@ -96,14 +96,16 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
9696
</Trait>
9797
<Trait>
9898
<Link
99-
to={'/cloud/creating-and-running-a-test/test-builder'}
99+
to={
100+
'/cloud/creating-and-running-a-test/test-builder/'
101+
}
100102
>
101103
Test Builder
102104
</Link>{' '}
103105
and{' '}
104106
<Link
105107
to={
106-
'/cloud/creating-and-running-a-test/script-editor'
108+
'/cloud/creating-and-running-a-test/script-editor/'
107109
}
108110
>
109111
Script Editor
@@ -114,7 +116,7 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
114116
<Link to={'/using-k6/cloud-execution'}>CLI</Link> and{' '}
115117
<Link
116118
to={
117-
'/test-authoring/recording-a-session/browser-recorder'
119+
'/test-authoring/recording-a-session/browser-recorder/'
118120
}
119121
>
120122
Browser Recorder
@@ -124,26 +126,28 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
124126
<Trait>
125127
<Link
126128
to={
127-
'/cloud/creating-and-running-a-test/scheduling-tests'
129+
'/cloud/creating-and-running-a-test/scheduling-tests/'
128130
}
129131
>
130132
Scheduling
131133
</Link>{' '}
132134
and{' '}
133-
<Link to={'/cloud/integrations/notifications'}>
135+
<Link to={'/cloud/integrations/notifications/'}>
134136
Notifications
135137
</Link>
136138
.
137139
</Trait>
138140
<Trait>
139141
<Link
140-
to={'/cloud/project-and-team-management/team-members'}
142+
to={
143+
'/cloud/project-and-team-management/team-members/'
144+
}
141145
>
142146
Team members
143147
</Link>{' '}
144148
and{' '}
145149
<Link
146-
to={'/cloud/project-and-team-management/projects'}
150+
to={'/cloud/project-and-team-management/projects/'}
147151
>
148152
Projects
149153
</Link>
@@ -164,56 +168,58 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
164168

165169
<div className={'col-lg-6 traits'}>
166170
<Trait>
167-
<Link to={'/cloud/analyzing-results/overview'}>
171+
<Link to={'/cloud/analyzing-results/overview/'}>
168172
Premium test result visualization
169173
</Link>
170174
.
171175
</Trait>
172176
<Trait>
173177
Get actionable{' '}
174178
<Link
175-
to={'/cloud/analyzing-results/performance-insights'}
179+
to={'/cloud/analyzing-results/performance-insights/'}
176180
>
177181
Performance Insights
178182
</Link>{' '}
179183
.
180184
</Trait>
181185
<Trait>
182-
<Link to={'/cloud/analyzing-results/test-comparison'}>
186+
<Link to={'/cloud/analyzing-results/test-comparison/'}>
183187
Compare tests{' '}
184188
</Link>{' '}
185189
and{' '}
186190
<Link
187-
to={'/cloud/analyzing-results/performance-trending'}
191+
to={'/cloud/analyzing-results/performance-trending/'}
188192
>
189193
performance trends
190194
</Link>
191195
.
192196
</Trait>
193197
<Trait>
194198
Integrate results with{' '}
195-
<Link to={'/cloud/integrations/cloud-apm'}>
199+
<Link to={'/cloud/integrations/cloud-apm/'}>
196200
APM platforms
197201
</Link>{' '}
198202
and{' '}
199-
<Link to={'/cloud/integrations/grafana-plugin'}>
203+
<Link to={'/cloud/integrations/grafana-plugin/'}>
200204
Grafana
201205
</Link>
202206
.
203207
</Trait>
204208
<Trait>
205209
Export results to{' '}
206-
<Link to={'/cloud/analyzing-results/result-export'}>
210+
<Link to={'/cloud/analyzing-results/result-export/'}>
207211
CSV
208212
</Link>{' '}
209213
and generate{' '}
210-
<Link to={'/cloud/analyzing-results/result-export'}>
214+
<Link to={'/cloud/analyzing-results/result-export/'}>
211215
PDF reports
212216
</Link>
213217
.
214218
</Trait>
215219
<Trait>
216-
<Link to={'/cloud/analyzing-results/test-results-menu'}>
220+
<Link
221+
to={'/cloud/analyzing-results/test-results-menu/'}
222+
>
217223
Create notes and share results
218224
</Link>
219225
.

src/templates/docs/guides.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function GuidesContent({
6060
title: 'Guides',
6161
},
6262
es: {
63-
path: '/es',
63+
path: '/es/',
6464
title: 'Guías',
6565
},
6666
};

src/templates/docs/integrations.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,14 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
272272
title: 'Test Builder',
273273
description:
274274
'Inspired in Postman API Builder. Codeless UI tool to generate a k6 test quickly.',
275-
url: 'https://k6.io/docs/test-authoring/test-builder',
275+
url: 'https://k6.io/docs/test-authoring/test-builder/',
276276
},
277277
{
278278
picture: browserRecorderImgData,
279279
title: 'Browser Recorder',
280280
description: 'Record a user journey to base your k6 test.',
281281
url:
282-
'https://k6.io/docs/test-authoring/recording-a-session/browser-recorder',
282+
'https://k6.io/docs/test-authoring/recording-a-session/browser-recorder/',
283283
},
284284
]}
285285
/>
@@ -307,7 +307,7 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
307307
title: 'IntelliSense',
308308
description:
309309
'Get code autocompletion and in-context documentation.',
310-
url: 'https://k6.io/docs/misc/intellisense',
310+
url: 'https://k6.io/docs/misc/intellisense/',
311311
},
312312
]}
313313
/>

0 commit comments

Comments
 (0)