Skip to content

Commit 8247369

Browse files
committed
fix: add trailing slashes to all feature page URLs and canonicals
1 parent a15363a commit 8247369

6 files changed

Lines changed: 154 additions & 150 deletions

File tree

src/components/footer/Footer.astro

Lines changed: 148 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -48,158 +48,162 @@ const activePreReleaseAriaLabel =
4848
>
4949
</li>
5050
<li>
51-
<a href="/features" aria-label="Link to Features">Features</a>
52-
</li>
53-
{
54-
features.map((feature) => (
55-
<li>
56-
<a
57-
href={`/features/${feature.slug}`}
58-
aria-label={`Link to ${feature.shortTitle}`}
51+
<li>
52+
<a href="/features/" aria-label="Link to Features">Features</a>
53+
</li>
54+
{
55+
features.map((feature) => (
56+
<li>
57+
<a
58+
href={`/features/${feature.slug}/`}
59+
aria-label={`Link to ${feature.shortTitle}`}
60+
>
61+
{feature.shortTitle}
62+
</a>
63+
</li>
64+
))
65+
}
66+
<li>
67+
<a
68+
href="https://forum.audacityteam.org/"
69+
aria-label="External link to Forum"
70+
target="_blank">Forum</a
71+
>
72+
</li>
73+
<li>
74+
<a
75+
href="https://merch.audacityteam.org/"
76+
aria-label="External link to Merch"
77+
target="_blank"
78+
>
79+
<b>Merch</b>
80+
<sup
81+
class="ml-1 px-1.5 py-0.3 rounded bg-red-600 text-white text-xs font-semibold"
82+
>NEW</sup
5983
>
60-
{feature.shortTitle}
61-
</a>
62-
</li>
63-
))
64-
}
65-
<li>
66-
<a
67-
href="https://forum.audacityteam.org/"
68-
aria-label="External link to Forum"
69-
target="_blank">Forum</a
70-
>
71-
</li>
72-
<li>
73-
<a
74-
href="https://merch.audacityteam.org/"
75-
aria-label="External link to Merch"
76-
target="_blank"
77-
>
78-
<b>Merch</b>
79-
<sup
80-
class="ml-1 px-1.5 py-0.3 rounded bg-red-600 text-white text-xs font-semibold"
81-
>NEW</sup
84+
</a>
85+
</li>
86+
<li>
87+
<a
88+
href="https://manual.audacityteam.org/"
89+
aria-label="External link to Manual"
90+
target="_blank">Manual</a
8291
>
83-
</a>
84-
</li>
85-
<li>
86-
<a
87-
href="https://manual.audacityteam.org/"
88-
aria-label="External link to Manual"
89-
target="_blank">Manual</a
90-
>
91-
</li>
92-
<li>
93-
<a
94-
href="https://audio.com/"
95-
aria-label="External link to Audio.com"
96-
target="_blank">Audio.com</a
97-
>
92+
</li>
93+
<li>
94+
<a
95+
href="https://audio.com/"
96+
aria-label="External link to Audio.com"
97+
target="_blank">Audio.com</a
98+
>
99+
</li>
98100
</li>
99101
</ul>
100-
</div>
101102

102-
<div
103-
class="col-start-7 col-span-5 row-start-2 md:col-span-2 md:col-start-4 lg:col-start-8 lg:row-start-1"
104-
>
105-
<p class="footer-list-heading">Downloads</p>
106-
<ul class="mt-2 footer-link-list space-y-2 md:space-y-0">
107-
<li>
108-
<a href="/download/windows" aria-label="Link to Windows">Windows</a>
109-
</li>
110-
<li><a href="/download/mac" aria-label="Link to macOS">macOS</a></li>
111-
<li><a href="/download/linux" aria-label="Link to Linux">Linux</a></li>
112-
{
113-
hasPreRelease && activeDownloadCampaign && (
114-
<li id="pre-release-link">
115-
<a
116-
href={activeDownloadCampaign.pageHref}
117-
aria-label={activePreReleaseAriaLabel}
118-
>
119-
{activeDownloadCampaign.label}
120-
</a>
121-
</li>
122-
)
123-
}
124-
<li>
125-
<a
126-
href="https://musehub.com/?utm_source=audacity&utm_medium=footer&utm_campaign=musehub"
127-
aia-label="External link to MuseHub">MuseHub</a
128-
>
129-
</li>
130-
<li>
131-
<a href="/download/openvino" aria-label="Link to AI plugins"
132-
>AI plugins</a
133-
>
134-
</li>
135-
</ul>
136-
</div>
103+
<div
104+
class="col-start-7 col-span-5 row-start-2 md:col-span-2 md:col-start-4 lg:col-start-8 lg:row-start-1"
105+
>
106+
<p class="footer-list-heading">Downloads</p>
107+
<ul class="mt-2 footer-link-list space-y-2 md:space-y-0">
108+
<li>
109+
<a href="/download/windows" aria-label="Link to Windows">Windows</a>
110+
</li>
111+
<li><a href="/download/mac" aria-label="Link to macOS">macOS</a></li>
112+
<li>
113+
<a href="/download/linux" aria-label="Link to Linux">Linux</a>
114+
</li>
115+
{
116+
hasPreRelease && activeDownloadCampaign && (
117+
<li id="pre-release-link">
118+
<a
119+
href={activeDownloadCampaign.pageHref}
120+
aria-label={activePreReleaseAriaLabel}
121+
>
122+
{activeDownloadCampaign.label}
123+
</a>
124+
</li>
125+
)
126+
}
127+
<li>
128+
<a
129+
href="https://musehub.com/?utm_source=audacity&utm_medium=footer&utm_campaign=musehub"
130+
aia-label="External link to MuseHub">MuseHub</a
131+
>
132+
</li>
133+
<li>
134+
<a href="/download/openvino" aria-label="Link to AI plugins"
135+
>AI plugins</a
136+
>
137+
</li>
138+
</ul>
139+
</div>
137140

138-
<div
139-
class="col-start-2 col-span-5 row-start-3 md:row-start-2 md:col-start-6 md:col-span-2 lg:col-start-10 lg:row-start-1"
140-
>
141-
<p class="footer-list-heading">Social</p>
142-
<ul class="mt-2 footer-link-list space-y-2 md:space-y-0">
143-
<li>
144-
<a
145-
href="https://www.facebook.com/Audacity/"
146-
aria-label="External link to Facebook"
147-
target="_blank">Facebook</a
148-
>
149-
</li>
150-
<li>
151-
<a
152-
href="https://github.com/audacity"
153-
aria-label="External link to github"
154-
target="_blank">Github</a
155-
>
156-
</li>
157-
<li>
158-
<a
159-
href="https://discord.gg/audacity"
160-
aria-label="External link to discord"
161-
target="_blank">Discord</a
162-
>
163-
</li>
164-
<li>
165-
<a
166-
href="https://www.youtube.com/c/audacity"
167-
aria-label="External link to Youtube"
168-
target="_blank">YouTube</a
169-
>
170-
</li>
171-
</ul>
172-
</div>
141+
<div
142+
class="col-start-2 col-span-5 row-start-3 md:row-start-2 md:col-start-6 md:col-span-2 lg:col-start-10 lg:row-start-1"
143+
>
144+
<p class="footer-list-heading">Social</p>
145+
<ul class="mt-2 footer-link-list space-y-2 md:space-y-0">
146+
<li>
147+
<a
148+
href="https://www.facebook.com/Audacity/"
149+
aria-label="External link to Facebook"
150+
target="_blank">Facebook</a
151+
>
152+
</li>
153+
<li>
154+
<a
155+
href="https://github.com/audacity"
156+
aria-label="External link to github"
157+
target="_blank">Github</a
158+
>
159+
</li>
160+
<li>
161+
<a
162+
href="https://discord.gg/audacity"
163+
aria-label="External link to discord"
164+
target="_blank">Discord</a
165+
>
166+
</li>
167+
<li>
168+
<a
169+
href="https://www.youtube.com/c/audacity"
170+
aria-label="External link to Youtube"
171+
target="_blank">YouTube</a
172+
>
173+
</li>
174+
</ul>
175+
</div>
173176

174-
<div class="col-start-2 col-span-10 mt-4 lg:mt-12">
175-
<div class="border-t-[1px] border-gray-300 pt-4">
176-
<p class="copyright text-center">
177-
Copyright &copy; <span id="copyright"></span> | Muse Group & contributors.
178-
Website content licensed <a
179-
href="https://creativecommons.org/licenses/by/4.0/"
180-
class="underline hover:text-blue-700"
181-
rel="license"
182-
target="_blank"
183-
aria-label="CC-by 4.0">CC-by 4.0</a
184-
>. Audacity® software is licensed under the terms of the GNU General
185-
Public License, Version 3. Further information about the software
186-
license, distribution and acceptable use can be found <a
187-
class="underline hover:text-blue-700"
188-
href="https://github.com/audacity/audacity/blob/master/LICENSE.txt"
189-
target="_blank"
190-
aria-label="in the source code">in the source code</a
191-
>. This site is powered by <a
192-
href="https://www.netlify.com/"
193-
target="_blank"
194-
class="underline hover:text-blue-700">Netlify</a
195-
>.
196-
</p>
177+
<div class="col-start-2 col-span-10 mt-4 lg:mt-12">
178+
<div class="border-t-[1px] border-gray-300 pt-4">
179+
<p class="copyright text-center">
180+
Copyright &copy; <span id="copyright"></span> | Muse Group & contributors.
181+
Website content licensed <a
182+
href="https://creativecommons.org/licenses/by/4.0/"
183+
class="underline hover:text-blue-700"
184+
rel="license"
185+
target="_blank"
186+
aria-label="CC-by 4.0">CC-by 4.0</a
187+
>. Audacity® software is licensed under the terms of the GNU General
188+
Public License, Version 3. Further information about the software
189+
license, distribution and acceptable use can be found <a
190+
class="underline hover:text-blue-700"
191+
href="https://github.com/audacity/audacity/blob/master/LICENSE.txt"
192+
target="_blank"
193+
aria-label="in the source code">in the source code</a
194+
>. This site is powered by <a
195+
href="https://www.netlify.com/"
196+
target="_blank"
197+
class="underline hover:text-blue-700">Netlify</a
198+
>.
199+
</p>
200+
</div>
197201
</div>
198202
</div>
199203
</div>
200-
</footer>
201204

202-
<script>
203-
const elem = document.querySelector("#copyright");
204-
if (elem) elem.textContent = new Date().getFullYear().toString();
205-
</script>
205+
<script>
206+
const elem = document.querySelector("#copyright");
207+
if (elem) elem.textContent = new Date().getFullYear().toString();
208+
</script>
209+
</footer>

src/components/navigation/NavigationReact.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function NavigationReact(props) {
1515
const navLinks = [
1616
{ href: "/download", linkText: "Downloads", target: "" },
1717
{ href: "/FAQ", linkText: "FAQ", target: "" },
18-
{ href: "/features", linkText: "Features", target: "" },
18+
{ href: "/features/", linkText: "Features", target: "" },
1919
{
2020
href: "https://support.audacityteam.org",
2121
linkText: "Help",

src/pages/features/change-pitch.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import AudacityMockUp from "../../assets/img/HeroBannerImage.webp";
99
<FeaturePageLayout
1010
title="Free Pitch Shifter – Change Audio Pitch Without Changing Speed | Audacity"
1111
description="Change pitch of audio without affecting speed. Transpose songs to any key, shift by semitones or percent. Free pitch shifter for Windows, Mac & Linux."
12-
canonical="https://www.audacityteam.org/features/change-pitch"
12+
canonical="https://www.audacityteam.org/features/change-pitch/"
1313
>
1414
<Fragment slot="hero">
1515
<section id="main" class="bg-gradient-to-r from-indigo-900 to-blue-700">

src/pages/features/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import "../../styles/icons.css";
77
<BaseLayout
88
title="Features – Audacity"
99
description="Explore Audacity's audio editing features. Learn how to pitch shift, record, mix, and more with free open-source software for Windows, Mac & Linux."
10-
canonical="https://www.audacityteam.org/features"
10+
canonical="https://www.audacityteam.org/features/"
1111
>
1212
<section id="main" class="bg-gradient-to-r from-indigo-900 to-blue-700">
1313
<div class="mx-auto px-4 md:px-8 py-8 md:py-12 lg:py-16 max-w-screen-lg">
@@ -30,7 +30,7 @@ import "../../styles/icons.css";
3030
{
3131
features.map((feature) => (
3232
<a
33-
href={`/features/${feature.slug}`}
33+
href={`/features/${feature.slug}/`}
3434
class="group p-4 md:p-6 border drop-shadow-sm md:drop-shadow-lg bg-white rounded-lg flex flex-col gap-2 hover:border-blue-700 hover:shadow-xl transition-all duration-200"
3535
>
3636
<span class={`icon icon-medium text-blue-700 ${feature.icon}`} />

src/pages/features/noise-reduction.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import AudacityMockUp from "../../assets/img/HeroBannerImage.webp";
99
<FeaturePageLayout
1010
title="Free Noise Reduction Tool – Remove Background Noise | Audacity"
1111
description="Remove background noise from audio for free. Audacity's Noise Reduction effect eliminates hiss, hum, fan noise and buzzing. Download free for Windows, Mac & Linux."
12-
canonical="https://www.audacityteam.org/features/noise-reduction"
12+
canonical="https://www.audacityteam.org/features/noise-reduction/"
1313
>
1414
<Fragment slot="hero">
1515
<section id="main" class="bg-gradient-to-r from-indigo-900 to-blue-700">

src/pages/features/vocal-remover.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import AudacityMockUp from "../../assets/img/HeroBannerImage.webp";
99
<FeaturePageLayout
1010
title="Free Vocal Remover – Remove Vocals from Any Song | Audacity"
1111
description="Remove vocals from any song for free with Audacity. AI-powered separation for karaoke, remixes & covers. No limits, no subscription. Windows, Mac & Linux."
12-
canonical="https://www.audacityteam.org/features/vocal-remover"
12+
canonical="https://www.audacityteam.org/features/vocal-remover/"
1313
>
1414
<Fragment slot="hero">
1515
<section id="main" class="bg-gradient-to-r from-indigo-900 to-blue-700">

0 commit comments

Comments
 (0)