Add canonical URL and noindex when using full page redirection

This commit is contained in:
sixtus 2022-12-31 20:46:44 +01:00
parent 44fa00ec52
commit 1f1a220e7d
1 changed files with 2 additions and 0 deletions

View File

@ -5,5 +5,7 @@
{{- if not $url }}
{{- errorf "missing, empty or null value at 'values.redirect.url': %s" .Position }}
{{- end }}
<link rel="canonical" href="{{ $url }}">
<meta name="robots" content="noindex">
<meta http-equiv="refresh" content="{{ $delay }}; url={{ $url }}">
{{- end }}