Page 1 of 1

Login: Directing a user to a specific web page

Posted: Mon Jun 26, 2017 11:25 am
by Aris
Hi.

In the normal mode, after login, all the users are directed to web page (for example "services").

This is my question:
But I would wish to direct a specific user (only him) to a specific web page (for example "special services").
This user has created an account with Signup: He has Full name, Username, password, and email.

Can you help me?

Re: Login: Directing a user to a specific web page

Posted: Mon Jun 26, 2017 11:42 am
by Pablo
This can be done with the 'User Redirect' object.

Re: Login: Directing a user to a specific web page

Posted: Mon Jun 26, 2017 11:46 am
by Aris
Tell to me please: Where I must locate the User Redirect object?

Re: Login: Directing a user to a specific web page

Posted: Mon Jun 26, 2017 11:51 am
by BaconFries
It is located in the Login tools -> User Redirect

Re: Login: Directing a user to a specific web page

Posted: Mon Jun 26, 2017 12:02 pm
by Aris
I was not clear...

Where I must locate this object? On the page itself where the user can be redirected or in another page?

Thank you.

Re: Login: Directing a user to a specific web page

Posted: Mon Jun 26, 2017 12:31 pm
by Pablo
It should be placed on the page where the user normally goes after logging in.

Re: Login: Directing a user to a specific web page

Posted: Mon Jun 26, 2017 3:16 pm
by Aris
Thank you Pablo.

You are so helpful!

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 2:51 pm
by Dragos
Hi...I tried the new login system and encountered the following problem with redirecting a category of users (administrators). I tried to use both [admin], [administrator], [Admin] and [Administrator] but the redirect to the desired page did not work. But when I wrote without parentheses (brakets), the administrator redirected me, which means that it doesn't work for user groups. I mention that during the test my account was administrator, activated and complete with all data: email, etc ...

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 2:53 pm
by Pablo
If you need help with this then please share a demo project so I can see all your settings.

Related FAQ:
viewtopic.php?f=10&t=82134

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 3:43 pm
by Dragos

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 4:04 pm
by Pablo
I'm sorry, but I am confused by all the pages. Where do I start?

Can you please simplify your project so it's immediately clear what you are trying to do?
See also the FAQ:
viewtopic.php?f=10&t=82134

Note that user roles are case sensitive
Also 'protected page' and 'user redirect' should not be on the same page.
'user redirect' is an alternative for 'protected page'. See also the help.

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 4:27 pm
by Dragos
It's not the whole project but just a simplified part as much as I could in a short time ... I presented only the operating system and 2 protected pages (movies and music). After logging in to login_signup from the first page (index) it sends you either in login ok or in login error as the case may be ... from login ok it must redirect you if you are in the admin group to the "admins" page and if you are a user to the page users .. there each group will have different options (links) and in the case of movies and music to have access or not.

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 5:25 pm
by Pablo
Did you try my suggestions?

If you need further assistance then please simplify the project, remove everything from the project that is not relevant to your question.

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 5:48 pm
by Dragos
Ok... important for me îs just login ok Page to redirect users to users Page and administrators to admis Page,...can delete everithing and jeep just that 3 files

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 6:05 pm
by Pablo
Did you try my suggestions?
user roles are case sensitive
Also 'protected page' and 'user redirect' should not be on the same page.
'user redirect' is an alternative for 'protected page'. See also the help.

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 6:13 pm
by Dragos
Yes.....will try....just i respunded your post..thx...

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 6:49 pm
by Dragos
I try...work with administrator to redirect just admin(user), but not work with the [admin] or [administrator] group.
i dont understand....why

Re: Login: Directing a user to a specific web page

Posted: Thu Oct 07, 2021 8:11 pm
by Pablo
Did you fix the casing of the user roles?

Re: Login: Directing a user to a specific web page

Posted: Sat Oct 09, 2021 7:04 pm
by Dragos
No. I dont understand what i mean. Not work for group role. Just for specified name of users and admins...

Re: Login: Directing a user to a specific web page

Posted: Sat Oct 09, 2021 7:05 pm
by Dragos
Lady version (16) work perfect

Re: Login: Directing a user to a specific web page

Posted: Sat Oct 09, 2021 8:36 pm
by Pablo
I meant that you will need to make sure that the upper/lowercase of the user roles must be correct
For example, 'administrator' must be 'Administrator'

Re: Login: Directing a user to a specific web page

Posted: Sun Oct 10, 2021 7:07 am
by Dragos
Dragos wrote: Thu Oct 07, 2021 2:51 pm Hi...I tried the new login system and encountered the following problem with redirecting a category of users (administrators). I tried to use both [admin], [administrator], [Admin] and [Administrator] but the redirect to the desired page did not work. But when I wrote without parentheses (brakets), the administrator redirected me, which means that it doesn't work for user groups. I mention that during the test my account was administrator, activated and complete with all data: email, etc ...
That i say ....

Re: Login: Directing a user to a specific web page

Posted: Sun Oct 10, 2021 7:30 am
by Pablo
In the project you have shared, the casing is not correct, so that will not work.

Re: Login: Directing a user to a specific web page

Posted: Mon Oct 11, 2021 4:02 am
by Dragos
FInaly.....work...after delete all project content in the web folder and publish again....thx..

Re: Login: Directing a user to a specific web page

Posted: Wed Jun 29, 2022 5:41 pm
by Aris
Thank you.