Forums / Developer / Referer url in template

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Referer url in template

Author Message

Igor Vrdoljak

Monday 19 February 2007 1:21:23 pm

Hi

Is there a way to find out referer url, in template code? To be more specific, i need to set RedirectURI in user/login template to a value depending on URL the user was redirected from.

I've searched the forum, but nothing came up.

Thnx

http://www.netgen.hr/eng
http://twitter.com/ivrdoljak

Damien Pobel

Tuesday 20 February 2007 11:16:45 am

Hi Igor,

As the referer is stored in a global variable in a PHP script, you can probably write a very small template operator that return this variable.

See http://ez.no/Exponential/documentation/development/extensions/template_operator

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish