Skip to content

Aplia/ezp-redirectoperators

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This is a fork of the codebase at http://projects.ez.no/redirect_operators , updated for eZ Publish 4.5+.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%