Updated func name to get route url in templates.

This commit is contained in:
mikestefanello 2021-12-18 17:02:29 -05:00
parent 5805afe947
commit 3525d5d704
5 changed files with 11 additions and 11 deletions

View file

@ -4,7 +4,7 @@
{{else if or (eq .StatusCode 403) (eq .StatusCode 401)}}
<p>You are not authorized to view the requested page.</p>
{{else if eq .StatusCode 404}}
<p>Click {{link (call .Reverse "home") "here" .Path}} to return home</p>
<p>Click {{link (call .ToURL "home") "here" .Path}} to return home</p>
{{else}}
<p>Something went wrong</p>
{{end}}