From 6ee7e4873f14ce9cc78c8aa126cf491bb8434d95 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 5 Jan 2023 12:04:38 +0400 Subject: [PATCH] Update links to have trailing slash --- src/components/Breadcrumbs.astro | 4 ++-- src/components/FeaturedGuides.astro | 4 ++-- .../FeaturedRoadmaps/FeaturedRoadmapItem.astro | 2 +- src/components/FeaturedVideos.astro | 4 ++-- src/components/Footer.astro | 14 +++++++------- src/components/GridRoadmapItem.astro | 2 +- src/components/GuideListItem.astro | 2 +- .../InteractiveRoadmap/InteractiveRoadmap.astro | 3 +-- src/components/Navigation.astro | 16 ++++++++-------- src/components/ResourcesAlert.astro | 9 ++++----- src/components/RoadmapBanner.astro | 2 +- src/components/RoadmapHeader.astro | 8 ++++---- src/components/VideoListItem.astro | 2 +- src/pages/404.astro | 2 +- src/pages/[roadmapId]/index.astro | 9 ++++----- src/pages/[roadmapId]/topics.astro | 4 ++-- src/pages/about.astro | 4 ++-- .../content/101-basic-frontend/102-javascript.md | 8 +------- .../content/103-learn-a-language/100-go.md | 9 +-------- .../content/103-learn-a-language/102-java.md | 8 +------- .../103-learn-a-language/105-javascript.md | 8 +------- .../content/103-learn-a-language/106-python.md | 8 +------- .../106-relational-databases/100-postgresql.md | 8 +------- .../100-frontend-frameworks/100-react.md | 8 +------- .../100-frontend-frameworks/101-angular.md | 8 +------- .../109-dapps/100-frontend-frameworks/102-vue.md | 8 +------- .../107-supporting-languages/101-python.md | 8 +------- .../109-dapps/107-supporting-languages/102-go.md | 9 +-------- .../content/101-pick-a-language/102-java.md | 8 +------- .../content/101-pick-a-language/103-python.md | 8 +------- .../content/101-pick-a-language/104-go.md | 9 +-------- .../devops/content/100-language/100-python.md | 8 +------- .../content/100-language/102-javascript.md | 8 +------- .../devops/content/100-language/103-go.md | 8 +------- .../frontend/content/103-javascript/index.md | 8 +------- .../111-pick-a-framework/100-react-js/index.md | 8 +------- .../111-pick-a-framework/101-angular/index.md | 8 +------- .../111-pick-a-framework/102-vue-js/index.md | 8 +------- .../121-mobile-applications/102-flutter.md | 8 +------- .../122-desktop-applications/102-flutter.md | 8 +------- .../110-nodejs-databases/100-relational/index.md | 4 +--- .../100-java-kotlin-scala.md | 8 +------- .../104-programming-languages/101-python.md | 8 +------- .../content/104-programming-languages/103-go.md | 9 +-------- .../104-javascript-typescript.md | 8 +------- .../111-web-and-mobile/101-react-vue-angular.md | 8 +------- 46 files changed, 73 insertions(+), 250 deletions(-) diff --git a/src/components/Breadcrumbs.astro b/src/components/Breadcrumbs.astro index e8841a18c..d4a99cfdc 100644 --- a/src/components/Breadcrumbs.astro +++ b/src/components/Breadcrumbs.astro @@ -18,7 +18,7 @@ const { breadcrumbs, roadmapId } = Astro.props; if (!isLast) { return ( <> - { breadcrumb.title } + { breadcrumb.title }  ·  ); @@ -30,7 +30,7 @@ const { breadcrumbs, roadmapId } = Astro.props;

- + ← Back to Topics List

diff --git a/src/components/FeaturedGuides.astro b/src/components/FeaturedGuides.astro index a9c5ec032..9b9d51f6e 100644 --- a/src/components/FeaturedGuides.astro +++ b/src/components/FeaturedGuides.astro @@ -18,7 +18,7 @@ const { heading, guides } = Astro.props;
View All Guides  → diff --git a/src/components/FeaturedRoadmaps/FeaturedRoadmapItem.astro b/src/components/FeaturedRoadmaps/FeaturedRoadmapItem.astro index 5f8519107..0c729fae5 100644 --- a/src/components/FeaturedRoadmaps/FeaturedRoadmapItem.astro +++ b/src/components/FeaturedRoadmaps/FeaturedRoadmapItem.astro @@ -24,7 +24,7 @@ if (roadmapTitle === 'Go') { 'opacity-50': roadmap.frontmatter.isUpcoming, }, ]} - href={`/${roadmap.id}`} + href={`/${roadmap.id}/`} > {roadmapTitle} diff --git a/src/components/FeaturedVideos.astro b/src/components/FeaturedVideos.astro index 267e9b217..242d33e33 100644 --- a/src/components/FeaturedVideos.astro +++ b/src/components/FeaturedVideos.astro @@ -18,7 +18,7 @@ const { heading, videos } = Astro.props;
View All Videos  → diff --git a/src/components/Footer.astro b/src/components/Footer.astro index f46f2aeac..c23b33e97 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -9,19 +9,19 @@ import Icon from './Icon.astro'; > RoadmapsRoadmaps GuidesGuides VideosVideos AboutAbout © roadmap.sh · - FAQs + FAQs · - Terms + Terms · - Privacy + Privacy

diff --git a/src/components/GridRoadmapItem.astro b/src/components/GridRoadmapItem.astro index d7ffb1542..624eff270 100644 --- a/src/components/GridRoadmapItem.astro +++ b/src/components/GridRoadmapItem.astro @@ -10,7 +10,7 @@ const frontmatter = roadmap.frontmatter; --- {frontmatter.title} diff --git a/src/components/InteractiveRoadmap/InteractiveRoadmap.astro b/src/components/InteractiveRoadmap/InteractiveRoadmap.astro index bd3e72c31..3d0746289 100644 --- a/src/components/InteractiveRoadmap/InteractiveRoadmap.astro +++ b/src/components/InteractiveRoadmap/InteractiveRoadmap.astro @@ -9,7 +9,6 @@ import "./InteractiveRoadmap.css"; export interface Props { roadmapId: string; description: string; - roadmapPermalink: string; jsonUrl: string; dimensions?: { width: number; @@ -17,7 +16,7 @@ export interface Props { }; } -const { roadmapId, jsonUrl, dimensions = null, description, roadmapPermalink } = +const { roadmapId, jsonUrl, dimensions = null, description } = Astro.props; --- diff --git a/src/components/Navigation.astro b/src/components/Navigation.astro index e9fde5ec8..1851e6a92 100644 --- a/src/components/Navigation.astro +++ b/src/components/Navigation.astro @@ -12,18 +12,18 @@ import Icon from './Icon.astro';