sync: Fix non-trimed git links

This commit is contained in:
nemunaire 2025-03-31 15:42:23 +02:00
parent 7d775fe26d
commit 56efb4ae94
2 changed files with 3 additions and 5 deletions

@ -2,9 +2,7 @@
<div ng-repeat="theme in forge_links"> <div ng-repeat="theme in forge_links">
<h2> <h2>
<a ng-href="{{ theme.forge_link }}" target="_blank"> <a ng-href="{{ theme.forge_link }}" target="_blank">{{ theme.name }}</a>&nbsp;: <span class="text-monospace">{{ theme.path }}</span>
{{ theme.name }}
</a>&nbsp;: {{ theme.path }}
</h2> </h2>
<ul> <ul>
<li ng-repeat="exercice in theme.exercices"> <li ng-repeat="exercice in theme.exercices">

@ -205,7 +205,7 @@ func (i GitImporter) GetThemeLink(th *fic.Theme) (u *url.URL, err error) {
return return
} }
u.Path = path.Join(u.Path, "-", "tree", i.Branch, strings.TrimPrefix(th.Path, prefix)) u.Path = path.Join(u.Path, "-", "tree", i.Branch, strings.TrimPrefix("/"+th.Path, prefix))
return return
} }
@ -241,7 +241,7 @@ func (i GitImporter) GetExerciceLink(e *fic.Exercice) (u *url.URL, err error) {
return return
} }
u.Path = path.Join(u.Path, "-", "tree", i.Branch, strings.TrimPrefix(e.Path, prefix)) u.Path = path.Join(u.Path, "-", "tree", i.Branch, strings.TrimPrefix("/"+e.Path, prefix))
return return
} }