Skip to content

Commit

Permalink
Fix relative links to pages containing ":"
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Wasserka committed Sep 22, 2024
1 parent 3755839 commit 40e9995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/_default/_markup/render-link.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if (not (or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "#"))) }}
<a href="/3dbrew/{{ .Destination }}"
<a href="/3dbrew/{{ strings.Replace .Destination ":" "" }}"
{{- with .Title }} title="{{ . }}"{{ end -}}
>
{{- with .Text }}{{ . }}{{ end -}}
Expand Down

0 comments on commit 40e9995

Please sign in to comment.