Make links language-aware #101

Merged
benjaoming merged 3 commits from fix-redirects into main 2023-07-29 16:24:11 +00:00
Owner

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.

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.
samsapti added 3 commits 2023-07-29 15:42:18 +00:00
Remove done todo
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2cab915021
benjaoming reviewed 2023-07-29 15:45:25 +00:00
@ -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" >}}).
Owner

Is this possible? :)

Is this possible? :)
Author
Owner

Surprisingly yes! Hugo knows how to find the file despite .da.md :)

Surprisingly yes! Hugo knows how to find the file despite `.da.md` :)
Author
Owner
It's on https://staging.data.coop btw
Owner

That's super nice! Being able to reference specific sections, supposing that it breaks loudly if there's an error.

That's super nice! Being able to reference specific sections, supposing that it breaks loudly if there's an error.
benjaoming marked this conversation as resolved
benjaoming approved these changes 2023-07-29 16:23:57 +00:00
benjaoming left a comment
Owner

Looks good and working on staging, awesome @samsapti 🥇

Looks good and working on staging, awesome @samsapti 🥇
benjaoming merged commit 7ba1a77f5c into main 2023-07-29 16:24:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
new-website
ui
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: data.coop/website#101
No description provided.