Skip to content

Commit fdacbae

Browse files
committed
feat: add trailing slash to all redirect links
1 parent 366ea4f commit fdacbae

File tree

2 files changed

+56
-58
lines changed

2 files changed

+56
-58
lines changed

gatsby-node.js

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -648,245 +648,245 @@ const createRedirects = ({ actions }) => {
648648
});
649649
createRedirect({
650650
fromPath: '/javascript-api/k6-http/cookiejar-k6-http',
651-
toPath: '/javascript-api/k6-http/cookiejar',
651+
toPath: '/javascript-api/k6-http/cookiejar/',
652652
isPermanent: true,
653653
});
654654
createRedirect({
655655
fromPath:
656656
'/javascript-api/k6-http/cookiejar-k6-http/cookiejar-cookiesforurl-url',
657-
toPath: '/javascript-api/k6-http/cookiejar/cookiejar-cookiesforurl-url',
657+
toPath: '/javascript-api/k6-http/cookiejar/cookiejar-cookiesforurl-url/',
658658
isPermanent: true,
659659
});
660660
createRedirect({
661661
fromPath:
662662
'/javascript-api/k6-http/cookiejar-k6-http/cookiejar-set-name-value-options',
663663
toPath:
664-
'/javascript-api/k6-http/cookiejar/cookiejar-set-name-value-options',
664+
'/javascript-api/k6-http/cookiejar/cookiejar-set-name-value-options/',
665665
isPermanent: true,
666666
});
667667
createRedirect({
668668
fromPath:
669669
'/javascript-api/k6-http/cookiejar/cookiejar-set-name-value-options',
670670
toPath:
671-
'/javascript-api/k6-http/cookiejar/cookiejar-set-url-name-value-options',
671+
'/javascript-api/k6-http/cookiejar/cookiejar-set-url-name-value-options/',
672672
isPermanent: true,
673673
});
674674
createRedirect({
675675
fromPath: '/javascript-api/k6-http/filedata-k6-http',
676-
toPath: '/javascript-api/k6-http/filedata',
676+
toPath: '/javascript-api/k6-http/filedata/',
677677
isPermanent: true,
678678
});
679679
createRedirect({
680680
fromPath: '/javascript-api/k6-http/params-k6-http',
681-
toPath: '/javascript-api/k6-http/params',
681+
toPath: '/javascript-api/k6-http/params/',
682682
isPermanent: true,
683683
});
684684
createRedirect({
685685
fromPath: '/javascript-api/k6-http/response-k6-http',
686-
toPath: '/javascript-api/k6-http/response',
686+
toPath: '/javascript-api/k6-http/response/',
687687
isPermanent: true,
688688
});
689689
createRedirect({
690690
fromPath:
691691
'/javascript-api/k6-http/response-k6-http/response-clicklink-params',
692-
toPath: '/javascript-api/k6-http/response/response-clicklink-params',
692+
toPath: '/javascript-api/k6-http/response/response-clicklink-params/',
693693
isPermanent: true,
694694
});
695695
createRedirect({
696696
fromPath: '/javascript-api/k6-http/response-k6-http/response-html',
697-
toPath: '/javascript-api/k6-http/response/response-html',
697+
toPath: '/javascript-api/k6-http/response/response-html/',
698698
isPermanent: true,
699699
});
700700
createRedirect({
701701
fromPath: '/javascript-api/k6-http/response-k6-http/response-json-selector',
702-
toPath: '/javascript-api/k6-http/response/response-json-selector',
702+
toPath: '/javascript-api/k6-http/response/response-json-selector/',
703703
isPermanent: true,
704704
});
705705
createRedirect({
706706
fromPath:
707707
'/javascript-api/k6-http/response-k6-http/response-submitform-params',
708-
toPath: '/javascript-api/k6-http/response/response-submitform-params',
708+
toPath: '/javascript-api/k6-http/response/response-submitform-params/',
709709
isPermanent: true,
710710
});
711711
createRedirect({
712712
fromPath: '/javascript-api/k6-metrics/counter-k6-metrics',
713-
toPath: '/javascript-api/k6-metrics/counter',
713+
toPath: '/javascript-api/k6-metrics/counter/',
714714
isPermanent: true,
715715
});
716716
createRedirect({
717717
fromPath: '/javascript-api/k6-metrics/gauge-k6-metrics',
718-
toPath: '/javascript-api/k6-metrics/gauge',
718+
toPath: '/javascript-api/k6-metrics/gauge/',
719719
isPermanent: true,
720720
});
721721
createRedirect({
722722
fromPath: '/javascript-api/k6-metrics/rate-k6-metrics',
723-
toPath: '/javascript-api/k6-metrics/rate',
723+
toPath: '/javascript-api/k6-metrics/rate/',
724724
isPermanent: true,
725725
});
726726
createRedirect({
727727
fromPath: '/javascript-api/k6-metrics/trend-k6-metrics',
728-
toPath: '/javascript-api/k6-metrics/trend',
728+
toPath: '/javascript-api/k6-metrics/trend/',
729729
isPermanent: true,
730730
});
731731
createRedirect({
732732
fromPath: '/using-k6/archives-for-bundling-sharing-a-test',
733-
toPath: '/misc/archive-command',
733+
toPath: '/misc/archive-command/',
734734
isPermanent: true,
735735
});
736736
createRedirect({
737737
fromPath: '/using-k6/ssl-tls',
738-
toPath: '/using-k6/protocols/ssl-tls',
738+
toPath: '/using-k6/protocols/ssl-tls/',
739739
isPermanent: true,
740740
});
741741
createRedirect({
742742
fromPath: '/using-k6/ssl-tls/online-certificate-status-protocol-ocsp',
743743
toPath:
744-
'/using-k6/protocols/ssl-tls/online-certificate-status-protocol-ocsp',
744+
'/using-k6/protocols/ssl-tls/online-certificate-status-protocol-ocsp/',
745745
isPermanent: true,
746746
});
747747
createRedirect({
748748
fromPath: '/using-k6/ssl-tls/ssl-tls-client-certificates',
749-
toPath: '/using-k6/protocols/ssl-tls/ssl-tls-client-certificates',
749+
toPath: '/using-k6/protocols/ssl-tls/ssl-tls-client-certificates/',
750750
isPermanent: true,
751751
});
752752
createRedirect({
753753
fromPath: '/using-k6/ssl-tls/ssl-tls-version-and-ciphers',
754-
toPath: '/using-k6/protocols/ssl-tls/ssl-tls-version-and-ciphers',
754+
toPath: '/using-k6/protocols/ssl-tls/ssl-tls-version-and-ciphers/',
755755
isPermanent: true,
756756
});
757757

758758
createRedirect({
759759
fromPath: '/using-k6/multipart-requests-file-uploads',
760-
toPath: '/examples/data-uploads',
760+
toPath: '/examples/data-uploads/',
761761
isPermanent: true,
762762
});
763763

764764
createRedirect({
765765
fromPath: '/getting-started/results-output/apache-kafka',
766-
toPath: '/results-visualization/apache-kafka',
766+
toPath: '/results-visualization/apache-kafka/',
767767
isPermanent: true,
768768
});
769769

770770
createRedirect({
771771
fromPath: '/getting-started/results-output/cloud',
772-
toPath: '/results-visualization/cloud',
772+
toPath: '/results-visualization/cloud/',
773773
isPermanent: true,
774774
});
775775
createRedirect({
776776
fromPath: '/results-visualization/k6-cloud-test-results',
777-
toPath: '/results-visualization/cloud',
777+
toPath: '/results-visualization/cloud/',
778778
isPermanent: true,
779779
});
780780

781781
createRedirect({
782782
fromPath: '/getting-started/results-output/datadog',
783-
toPath: '/results-visualization/datadog',
783+
toPath: '/results-visualization/datadog/',
784784
isPermanent: true,
785785
});
786786
createRedirect({
787787
fromPath: '/getting-started/results-output/influxdb',
788-
toPath: '/results-visualization/influxdb-+-grafana',
788+
toPath: '/results-visualization/influxdb-+-grafana/',
789789
isPermanent: true,
790790
});
791791

792792
createRedirect({
793793
fromPath: '/getting-started/results-output/json',
794-
toPath: '/results-visualization/json',
794+
toPath: '/results-visualization/json/',
795795
isPermanent: true,
796796
});
797797

798798
createRedirect({
799799
fromPath: '/getting-started/results-output/statsd',
800-
toPath: '/results-visualization/statsd',
800+
toPath: '/results-visualization/statsd/',
801801
isPermanent: true,
802802
});
803803

804804
createRedirect({
805805
fromPath:
806806
'/javascript-api/k6-metrics/counter-k6-metrics/counter-add-value-tags',
807-
toPath: '/javascript-api/k6-metrics/counter/counter-add-value-tags',
807+
toPath: '/javascript-api/k6-metrics/counter/counter-add-value-tags/',
808808
isPermanent: true,
809809
});
810810

811811
createRedirect({
812812
fromPath:
813813
'/javascript-api/k6-metrics/gauge-k6-metrics/gauge-add-value-tags',
814-
toPath: '/javascript-api/k6-metrics/gauge/gauge-add-value-tags',
814+
toPath: '/javascript-api/k6-metrics/gauge/gauge-add-value-tags/',
815815
isPermanent: true,
816816
});
817817

818818
createRedirect({
819819
fromPath: '/javascript-api/k6-metrics/rate-k6-metrics/rate-add-value-tags',
820-
toPath: '/javascript-api/k6-metrics/rate/rate-add-value-tags',
820+
toPath: '/javascript-api/k6-metrics/rate/rate-add-value-tags/',
821821
isPermanent: true,
822822
});
823823

824824
createRedirect({
825825
fromPath:
826826
'/javascript-api/k6-metrics/trend-k6-metrics/trend-add-value-tags',
827-
toPath: '/javascript-api/k6-metrics/trend/trend-add-value-tags',
827+
toPath: '/javascript-api/k6-metrics/trend/trend-add-value-tags/',
828828
isPermanent: true,
829829
});
830830

831831
createRedirect({
832832
fromPath:
833833
'/javascript-api/k6-http/cookiejar/cookiejar-set-name-value-options',
834834
toPath:
835-
'/javascript-api/k6-http/cookiejar-k6-http/cookiejar-set-name-value-options',
835+
'/javascript-api/k6-http/cookiejar-k6-http/cookiejar-set-name-value-options/',
836836
isPermanent: true,
837837
});
838838

839839
createRedirect({
840840
fromPath: '/using-k6/cloud-execution',
841-
toPath: '/cloud/creating-and-running-a-test/cloud-tests-from-the-cli',
841+
toPath: '/cloud/creating-and-running-a-test/cloud-tests-from-the-cli/',
842842
isPermanent: true,
843843
});
844844

845845
createRedirect({
846846
fromPath: '/using-k6/html/working-with-html-forms',
847-
toPath: '/examples/html-forms',
847+
toPath: '/examples/html-forms/',
848848
isPermanent: true,
849849
});
850850

851851
createRedirect({
852852
fromPath: '/using-k6/html',
853-
toPath: '/javascript-api/k6-html',
853+
toPath: '/javascript-api/k6-html/',
854854
isPermanent: true,
855855
});
856856

857857
createRedirect({
858858
fromPath: '/using-k6/session-recording-har-support',
859-
toPath: '/test-authoring/recording-a-session',
859+
toPath: '/test-authoring/recording-a-session/',
860860
isPermanent: true,
861861
});
862862

863863
createRedirect({
864864
fromPath: '/cloud/creating-and-running-a-test/test-builder',
865-
toPath: '/test-authoring/test-builder',
865+
toPath: '/test-authoring/test-builder/',
866866
isPermanent: true,
867867
});
868868

869869
createRedirect({
870870
fromPath: '/cloud/creating-and-running-a-test/in-app-script-editor',
871-
toPath: '/cloud/creating-and-running-a-test/script-editor',
871+
toPath: '/cloud/creating-and-running-a-test/script-editor/',
872872
isPermanent: true,
873873
});
874874

875875
createRedirect({
876876
fromPath: '/cloud/creating-and-running-a-test/recording-a-test-script',
877-
toPath: '/test-authoring/recording-a-session/browser-recorder',
877+
toPath: '/test-authoring/recording-a-session/browser-recorder/',
878878
isPermanent: true,
879879
});
880880

881881
createRedirect({
882882
fromPath: '/cloud/creating-and-running-a-test/converters',
883-
toPath: '/integrations',
883+
toPath: '/integrations/',
884884
isPermanent: true,
885885
});
886886

887887
createRedirect({
888888
fromPath: '/cloud/integrations/ci',
889-
toPath: '/integrations',
889+
toPath: '/integrations/',
890890
isPermanent: true,
891891
});
892892

@@ -898,62 +898,62 @@ const createRedirects = ({ actions }) => {
898898

899899
createRedirect({
900900
fromPath: '/cloud/cloud-faq/what-is-data-retention',
901-
toPath: '/cloud/billing-user-menu/data-retention',
901+
toPath: '/cloud/billing-user-menu/data-retention/',
902902
isPermanent: true,
903903
});
904904

905905
createRedirect({
906906
fromPath: '/cloud/cloud-faq/pricing-faq',
907-
toPath: '/cloud/cloud-faq/pricing-questions',
907+
toPath: '/cloud/cloud-faq/pricing-questions/',
908908
isPermanent: true,
909909
});
910910

911911
createRedirect({
912912
fromPath: '/cloud/cloud-faq/what-ip-addresses-are-used-by-the-k6-cloud',
913-
toPath: '/cloud/cloud-faq/general-questions',
913+
toPath: '/cloud/cloud-faq/general-questions/',
914914
isPermanent: true,
915915
});
916916
createRedirect({
917917
fromPath:
918918
'/cloud/cloud-faq/what-is-the-best-way-to-debug-my-load-test-scripts',
919-
toPath: '/cloud/cloud-faq/general-questions',
919+
toPath: '/cloud/cloud-faq/general-questions/',
920920
isPermanent: true,
921921
});
922922
createRedirect({
923923
fromPath:
924924
'/cloud/cloud-faq/i-was-invited-to-an-organization-and-i-cannot-run-tests',
925-
toPath: '/cloud/cloud-faq/general-questions',
925+
toPath: '/cloud/cloud-faq/general-questions/',
926926
isPermanent: true,
927927
});
928928
createRedirect({
929929
fromPath:
930930
'/cloud/cloud-faq/how-to-open-your-firewall-to-k6-cloud-service-for-cloud-executed-tests',
931-
toPath: '/cloud/cloud-faq/general-questions',
931+
toPath: '/cloud/cloud-faq/general-questions/',
932932
isPermanent: true,
933933
});
934934
createRedirect({
935935
fromPath: '/cloud/cloud-faq/test-status-codes',
936-
toPath: '/cloud/cloud-faq/general-questions',
936+
toPath: '/cloud/cloud-faq/general-questions/',
937937
isPermanent: true,
938938
});
939939
createRedirect({
940940
fromPath: '/cloud/cloud-faq/what-are-vus-virtual-users',
941-
toPath: '/cloud/cloud-faq/general-questions',
941+
toPath: '/cloud/cloud-faq/general-questions/',
942942
isPermanent: true,
943943
});
944944
createRedirect({
945945
fromPath: '/cloud/cloud-faq/data-uploads-with-k6-cloud',
946-
toPath: '/cloud/cloud-faq/general-questions',
946+
toPath: '/cloud/cloud-faq/general-questions/',
947947
isPermanent: true,
948948
});
949949
createRedirect({
950950
fromPath: '/misc/usage-reports',
951-
toPath: '/misc/usage-collection',
951+
toPath: '/misc/usage-collection/',
952952
isPermanent: true,
953953
});
954954
createRedirect({
955955
fromPath: '/using-k6/using-node-modules',
956-
toPath: '/using-k6/modules',
956+
toPath: '/using-k6/modules/',
957957
isPermanent: true,
958958
});
959959
};

src/templates/docs/cloud.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
7575
We want you to spend time building and maintaining
7676
well-performing applications. Don’t saddle your team with
7777
the{' '}
78-
<a href="https://k6.io/what-to-consider-when-building-or-buying-a-load-testing-solution">
78+
<a href="https://k6.io/what-to-consider-when-building-or-buying-a-load-testing-solution/">
7979
additional maintenance burden
8080
</a>{' '}
8181
of your load testing infrastructure.
@@ -96,9 +96,7 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
9696
</Trait>
9797
<Trait>
9898
<Link
99-
to={
100-
'/cloud/creating-and-running-a-test/test-builder/'
101-
}
99+
to={'/cloud/creating-and-running-a-test/test-builder'}
102100
>
103101
Test Builder
104102
</Link>{' '}
@@ -157,7 +155,7 @@ export default function ({ pageContext: { sidebarTree, navLinks } }) {
157155
See team and testing activity with{' '}
158156
<Link
159157
to={
160-
'/cloud/project-and-team-management/usage-reports'
158+
'/cloud/project-and-team-management/usage-reports/'
161159
}
162160
>
163161
Usage reports

0 commit comments

Comments
 (0)