As I was getting started with the settings component I noticed a couple things that I decided should be fixed in a separate PR:
We were calculating the project slug based on the project object in a bunch of places where the slug was available in the parent component. I've updated all of these occurrences to accept the slug from the parent component instead of recalculating it again.
The filepath /pages/[lang]/projects/[slug].astro (while there was already a /pages/[lang]/projects/[projectSlug]/** directory) was inconsistent with how we structured other page paths, and with how Astro paths are typically structured. I've moved that page to /pages/[lang]/projects/[projectSlug]/index.astro. This doesn't change the URL, just the filepath in the repo.
Summary
As I was getting started with the settings component I noticed a couple things that I decided should be fixed in a separate PR:
project
object in a bunch of places where the slug was available in the parent component. I've updated all of these occurrences to accept the slug from the parent component instead of recalculating it again./pages/[lang]/projects/[slug].astro
(while there was already a/pages/[lang]/projects/[projectSlug]/**
directory) was inconsistent with how we structured other page paths, and with how Astro paths are typically structured. I've moved that page to/pages/[lang]/projects/[projectSlug]/index.astro
. This doesn't change the URL, just the filepath in the repo.