Skip to content

Commit 5be92b1

Browse files
committed
fix: add permalinkPrefix to role group links for fork compatibility
- Update role index templates to use {{ permalinkPrefix }} in group links - Ensures proper routing when site is deployed on GitHub Pages forks - Maintains compatibility between main site and fork deployments
1 parent 5a87426 commit 5be92b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/en/roles/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tags:
1313
{% for roleGroup in groupPairsEn %}
1414
<div class="col-md-6">
1515
<h2>
16-
<a href="/{{ locale }}/roles/{{ roleGroup[0] }}/">{{ roleGroup[1] }}</a>
16+
<a href="{{ permalinkPrefix }}/{{ locale }}/roles/{{ roleGroup[0] }}/">{{ roleGroup[1] }}</a>
1717
</h2>
1818
<ul class="list-inline">
1919
{% for roleLabel in roleGroup[3] %}

src/main/fr/roles/index.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tags:
1313
{% for roleGroup in groupPairsFr %}
1414
<div class="col-md-6">
1515
<h2>
16-
<a href="/{{ locale }}/roles/{{ roleGroup[0] }}/">{{ roleGroup[1] }}</a>
16+
<a href="{{ permalinkPrefix }}/{{ locale }}/roles/{{ roleGroup[0] }}/">{{ roleGroup[1] }}</a>
1717
</h2>
1818
<ul class="list-inline">
1919
{% for roleLabel in roleGroup[3] %}

0 commit comments

Comments
 (0)