mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
a775488304
* The fix for #14357 yesterday sadly had the assumption that default language/version/role always was the first site in the sites matrix. This is common, but not always true. * Also, that fix forgot to add a redirect the other way when `defaultContentLanguageInSubdir` was disabled, e.g. from `/en/` to `/`. * This commit also renames config option `DisableDefaultDimensionRedirect` to `DisableDefaultSiteRedirect`. This is stricly a breaking change, but it's only been out for a day, and the old name didn't make much sense. Fixes #14361
10 lines
315 B
HTML
10 lines
315 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ site.Language.LanguageCode }}">
|
|
<head>
|
|
<title>{{ .Permalink }}</title>
|
|
{{ with .OutputFormats.Canonical }}<link rel="{{ .Rel }}" href="{{ .Permalink }}">{{ end }}
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="refresh" content="0; url={{ .Permalink }}">
|
|
</head>
|
|
</html>
|