Hey everyone!
Building a small module with a backend control panel using ExpressionEngine v2.1.0 Build 20100810.
I’m having issues redirecting users to the module’s index page in CP.
Here is a snippet I’ve been trying:
$uri = BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=rollen';
$uri = html_entity_decode($uri);
redirect($uri);redirect() seems to always redirect to /index.php, so whatever I make out $uri to be, I get redirected to somewhere outside of CP.
An example would be:
http://hostname.example.com/index.php/index.php?S=22e3308a58a571e3386aa2aac43a227a11b54321&D=cp&C=addons_modules&M=show_module_cp&module=rollenThat URI needs to be:
http://hostname.example.com/cms/index.php?S=22e3308a58a571e3386aa2aac43a227a11b54321&D=cp&C=addons_modules&M=show_module_cp&module=rollenI can use this for redirect and still end up outside of CP:
redirect('/cms/'.$uri);is redirected to
http://hostname.example.com/index.php/cms/index.php?S=22e3308a58a571e3386aa2aac43a227a11b54321&D=cp&C=addons_modules&M=show_module_cp&module=rollenAgain: http://hostname.example.com/index.php added to the URL I need.
Can anybody shed some light on this issue? Did I miss something in the User Guide?
Thanks!… Nico
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.