Skip to content

Commit

Permalink
fix: link
Browse files Browse the repository at this point in the history
  • Loading branch information
hrenaud committed Feb 11, 2024
1 parent aac44da commit 4a9b7c6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/CardView.astro
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const [, ...entry_slug] = entry.slug.split("/");
class="tohide box interactive mb-4 border-neutral-transparent py-2 transition-all md:py-6"
>
<a
href={`${entry_slug}`}
href={`${type === Card.FICHES && "fiches/"}${entry_slug}`}
class:list={[
"flex no-underline",
{
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const translatePath = useTranslatedPath(lang);
<span>&middot;</span>
<ul class="flex gap-4">
<a
href={translatePath("/mentions-legales/")}
href={translatePath("/mentions-legales")}
title={t("Les mentions légales du site.")}
>
{t("Mentions légales")}
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const translatePath = useTranslatedPath(lang);
</li>
<li class="!m-0">
<a
href={translatePath("/fiches/")}
href={translatePath("/fiches")}
class={`text-white text-xl lg:text-base no-underline text-inherit font-medium`}
title={t("Consulter les Bonnes pratiques")}
>
Expand All @@ -67,7 +67,7 @@ const translatePath = useTranslatedPath(lang);
</li>
<li class="!m-0">
<a
href={translatePath("/lexique/")}
href={translatePath("/lexique")}
class={`text-white text-xl lg:text-base no-underline text-inherit font-medium`}
title={t("Consulter le Lexique")}
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LanguagePicker.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const t = useTranslations(lang);
<option>{t("Changer de langue")}</option>
{
Object.entries(languages).map(([language, label]) => (
<option value={translatePath(`/`, language)}>{label}</option>
<option value={translatePath(``, language)}>{label}</option>
))
}
</select>
Expand Down

0 comments on commit 4a9b7c6

Please sign in to comment.