Redirect After Login
Is there a setting I am missing to have users redirected to their profile page or discussion page after successfully logging in? When logging into my site, the user is brought back to the main page of the website and it still shows the login box if you click on the profile icon. The only way you know you are logged in is if you click on left hand menu icon and see that you can click on something like People and it will then show your profile pic in the top right corner. So it appears to the user they never logged in successfully.
Thanks in advance.
-
- · Jeremy
- ·
Any ideas? Andrew Boon Alex T⚜️ Anton L
Thanks
-
- · Jeremy
- ·
Andrew Boon Alex T⚜️ Anton L UNA Inc
Do any of you have an idea how to make this work? Please advise.
-
-
·
LeonidS
- ·
Hello JMonroe!
In UNA you may setup redirect URL only after creation (Stuido->Settings->Persons area). If you really need to redirect users after login somewhere else then edit this line in file template/script/BxBaseFormLogin.php:
$sRelocate = BX_DOL_URL_ROOT . 'member.php';
replace 'member.php' to another file.
With the best regards, Leonid
-
·
LeonidS
-
- · Baloo
-
·
In reply to LeonidS
- ·
Hello Leonid,
Where can I find something similar to redirect to a page after creating an account via Dolphin Connect, please ?
-
- · Jeremy
-
·
In reply to LeonidS
- ·
Thanks for the information. It was redirecting to default member page due to some issues on my old host. I switched hosting company this past weekend and everything is working as should. Definitely good to know though in case I decided to do something different.
-
- · Chris
- ·
So if I wanted to redirect someone to the Dashboard after logging in, how would I do that?
-
-
·
LeonidS
-
·
In reply to Chris
- ·
Hello Chris!
You may replace this line from the member.php file:
header('Location: ' . BX_DOL_URL_ROOT);
to the following:
header('Location: ' . BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=dashboard'));
-
·
LeonidS
-
- · Vic Nicoll
- ·
Hello Leonid...
I as well need to have the login redirect to the dashboard, and I have tried the above instructions many times and it still doesn't seem to redirect to the dashboard. I cleared my cache all the times through as well.
I am not sure why this is not working.
Kind Regards
Vic
-
- · Genesis
- ·
Instead of redirecting to the dashboard, how do I redirect to the person's profile? page/view-persons-profile?id=
-
- · Genesis
- ·
I still can't redirect to the person's profile after login. I tried all the instructions listed above.
-
-
·
LeonidS
-
·
In reply to Genesis
- ·
HI Genesis !
It may be done like here https://una.io/cmts.php?sys=bx_forum&id=815&cmt_id=2830 but just set the URL like
$sRelocate = BX_DOL_URL_ROOT . 'page/view-persons-profile?id=' . be_get_logged_profile_id()
-
·
LeonidS
-
-
Hi @LeonidS
I have tried this but it doesn't work.
-
- · Lukmannulhakim
- ·
Update: Solved now
Thanks.