Forums / Developer / Redirect to an other siteaccess

"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".

Redirect to an other siteaccess

Author Message

Nabil Alimi

Friday 17 March 2006 3:12:37 am

Hi there,

I've created a module extension to add some treatement to my object creation process. So for a particular content class (called 'bloc' in my case) it goes that way :

- The content/edit form with redirectURI set to the path of my extension
- In my extension, after process is done i'd like to redirectTo an other siteaccess. But by using the redirectTo() method, it seems that it can only be redirected to a module within the current siteaccess.

I wanted to have something like this. "navi" here is my 2nd siteaccess.

$Module->redirectTo( "/navi/content/view/full/".$Params['parent_node'] );

Is there some way to achieve it ?

Thanks !

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Nabil Alimi

Friday 17 March 2006 4:35:18 am

Well i found something, but it's a bit tricky.

$Module->redirectTo( "../navi/content/view/full/".$Params['parent_node'] );

If someone as a "cleaner" method, i'd be glad to hear it.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr