Skip to content

Commit

Permalink
Update _redirects.antlers.html (#38)
Browse files Browse the repository at this point in the history
Fixes an error: modifier to not found
Related to statamic/cms#5306
  • Loading branch information
freshface authored Nov 28, 2023
1 parent 55a7266 commit be22cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/errors/_redirects.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
{{# Redirect if current_url is in the Redirects global. #}}
{{ redirects:redirects | where('url_old', {current_uri}) }}
{{ if internal_url }}
{{ redirect :to="internal_url:url" response="{response}" }}
{{ %redirect :to="internal_url:url" response="{response}" }}
{{ elseif external_url }}
{{ redirect :to="external_url" response="{response}" }}
{{ %redirect :to="external_url" response="{response}" }}
{{ /if }}
{{ /redirects:redirects }}

0 comments on commit be22cf1

Please sign in to comment.