From 5dee6bf92bb8332c646ad6ac5b1135832e02e1f8 Mon Sep 17 00:00:00 2001 From: Arnaud Ligny Date: Mon, 23 Oct 2023 19:16:56 +0200 Subject: [PATCH] fix: do not force 404 redirects --- layouts/page.netlify_redirects.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/page.netlify_redirects.twig b/layouts/page.netlify_redirects.twig index 09079fb..d471a93 100644 --- a/layouts/page.netlify_redirects.twig +++ b/layouts/page.netlify_redirects.twig @@ -17,7 +17,7 @@ # Custom 404 error pages {%- if site.languages > 1 -%} {%- for language in site.languages|filter(l => l.code != site.language) ~%} -/{{ language.code }}/* {{ url(site.page('404', language.code), {'canonical': false}) }} 404! +/{{ language.code }}/* {{ url(site.page('404', language.code), {'canonical': false}) }} 404 {%- endfor -%} {%- endif ~%} -{{ url(site.home, {'canonical': false}) }}* {{ url(site.page('404'), {'language': site.language, 'canonical': false}) }} 404! \ No newline at end of file +{{ url(site.home, {'canonical': false}) }}* {{ url(site.page('404'), {'language': site.language, 'canonical': false}) }} 404 \ No newline at end of file