Aaryan Posted June 6, 2017 Report Share Posted June 6, 2017 Hello Peeps. I am working on a new Crew Center. I have renamed the Profile Module as Dashboard. My frontpage_main.php looks like this <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <?php if(Auth::LoggedIn()) { header('Location:'.SITE_URL.'/dashboard'); } else { header('Location:'.SITE_URL.'/login'); } ?> Now after I log in it still redirects me to Profile Module. I want it to be redirected to Dashboard Module as http://crew.siteurl.com/dashboard. I tried to dig deeper but was afraid to mess up. So any leads or fixes folks? Sincerely, Aaryan Kapoor Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted June 6, 2017 Moderators Report Share Posted June 6, 2017 In the login form there is a hidden field which includes the directory where you want to redirect someone who logs into your system. Open lib/skins/your_skin/login_form.php or core/templates/login_form.php and there should be a field like this: <input type="hidden" name="redir" value="index.php/profile" /> replace "index.php/profile" to "index.php/dashboard and it should work the way you want. 1 Quote Link to comment Share on other sites More sharing options...
Aaryan Posted June 6, 2017 Author Report Share Posted June 6, 2017 Well @servetas Thanks Dude! That Did it. Working like a charm. The answer was in front and I was searching here and there. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.