Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.07 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.07 KB

Deprecated

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' )}.

Redirectoperators

eZ publish legacy template operators for performing URL redirect from within a template. The operators will send an HTTP header 301.

  • redirectabsolute
  • redirectrelative

Latest Stable Version Minimum PHP Version

Installation

Install with Composer:

composer require aplia/redirectoperators

Usage

From within a template, write:

{redirectrelative( '' )}

for instance:

{redirectrelative( '/path/to/file.php' )}

or

{redirectabsolute( '' )}

for instance:

{redirectabsolute( '' )}