Skip to content

Commit

Permalink
fix: do not force 404 redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Oct 23, 2023
1 parent b643cb8 commit 5dee6bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/page.netlify_redirects.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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!
{{ url(site.home, {'canonical': false}) }}* {{ url(site.page('404'), {'language': site.language, 'canonical': false}) }} 404

0 comments on commit 5dee6bf

Please sign in to comment.