21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 805 Views |
-
Redirect to 'admin/myModule'

27 May 2010 at 9:38pm
Hi all, got a problem with redirect in admin section.
When an user is logged, i want to redirect him to the page of the module i've created (example: /admin/myModule).
I've tried to do this in LeftAndMain using Director::redirect($Url_base. 'myModule'), but it doesn't work.
Any suggestions?
Thanks in advance
ed
-
Re: Redirect to 'admin/myModule'

28 May 2010 at 3:59am Last edited: 28 May 2010 4:00am
I've used this in _config.php...
Security::set_default_login_dest('admin/myModule');
Barry
-
Re: Redirect to 'admin/myModule'

28 May 2010 at 7:28pm Last edited: 28 May 2010 7:34pm
Thanks so much Barry, but it doesn't work for me. I've also tried to set the $default_login_dest in Security.php, but it always redirects me to admin/.
I solved changing (in LeftAndMain) this line
return Director::redirect($candidate->Link);
to
return Director::redirect('admin/myModule');
Bye
| 805 Views | ||
|
Page:
1
|
Go to Top |


