Make links language-aware #101
No reviewers
Labels
No labels
new-website
ui
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: data.coop/website#101
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-redirects"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, when clicking on links they redirect to the absolute path, which is always the Danish version because only the English version has the
/en/
path prefix. This PR makes links always generate with a path prefix if the current language has one. Including the logo.@ -9,2 +8,3 @@
Alle tjenester er benævnt med [badges]({{< ref "/services/#badges" >}}), der deklarerer i hvor høj grad den
enkelte tjeneste lever op til [kerneprincipperne defineret i formålsparagraffen
i vores vedtægter](/rights/#-2-formål).
i vores vedtægter]({{< ref "/rights.md#-2-formål" >}}).
Is this possible? :)
Surprisingly yes! Hugo knows how to find the file despite
.da.md
:)It's on https://staging.data.coop btw
That's super nice! Being able to reference specific sections, supposing that it breaks loudly if there's an error.
Looks good and working on staging, awesome @samsapti 🥇