This package is deprecated and can be replaced by using the redirect
operator from composer package Swark instead.
ie. {redirectrelative( '' )}
becomes {redirect( '', 301 )}
and {redirectabsolute( '' )}
becomes {redirect( '', 301, 'abs' )}
.
eZ publish legacy template operators for performing URL redirect from within a template. The operators will send an HTTP header 301.
redirectabsolute
redirectrelative
Install with Composer:
composer require aplia/redirectoperators
From within a template, write:
{redirectrelative( '' )}
for instance:
{redirectrelative( '/path/to/file.php' )}
or
{redirectabsolute( '' )}
for instance:
{redirectabsolute( '' )}