Trouble with redirect

Trouble with redirect

Monday 02 June 2008 1:22:23 am - 2 replies

Author Message

Nathan Kelly

Monday 02 June 2008 1:33:54 am

Hi Brendan,

Looking at kernel/notification/settings it looks like action="notification/settings" uses "redirect_url" rather than "RedirectURI"

if ( $http->hasSessionVariable( "LastAccessesURI" ) )
    $tpl->setVariable( 'redirect_url', $http->sessionVariable( "LastAccessesURI" ) );

Hope that helps

Cheers
Nathan.

Pardon me while I burst into flames...

Nathan Kelly

Monday 02 June 2008 1:43:15 am

Sorry,

after another look it seems there's no way to override the LastAccessURI within kernel/notification/settings, I'd say you'll either need to hack that file or use an extension for the redirect...

You could use the session variable extension to re-write the LastAccessURI for example...

http://ez.no/developer/contribs/template_plugins/template_session_functionality
http://ez.no/developer/contribs/template_plugins/smile_session

or maybe try...

http://ez.no/developer/contribs/template_plugins/redirect_operators

Just watch out if you are running eZ 4.0 you might need to update the extension for compatibility otherwise you may get some errors here and there...

Cheers.

Pardon me while I burst into flames...

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.