Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Redirecting users after login


Go to End


2 Posts   1667 Views

Avatar
Chipie

Community Member, 16 Posts

17 November 2011 at 8:09am

Hi Everyone, I have installed the member profile page module.

When a user who is in the member group succesfully log in they are automatically directed to the 'Page Not Found'.
If they click on any link after that then they can successfully navigate the site and edit their profile. So the login was a success!
I have made some changes to the code to enable group redirection as per the site; http://www.ssbits.com/tutorials/2009/custom-login-form-with-group-based-redirection/ but although i can see the 'select a page to redirect to' option within the security tab and I can click on the 'About Us' page, users are still directed to the same 'Page not found' after login.

Anybody got any ideas?

I am new to Silverstripe and coding so it could be something very simple that I am missing!

Thanks

Chipie

Avatar
Chipie

Community Member, 16 Posts

17 November 2011 at 10:15pm

I dont know if this helps but I installed Firebug and it highlights the error after login and gives me the url it is trying to find which is:
http://localhost/caseproject//caseproject/about-us/
So it looks as if it is generating caseproject twice before adding the page that I want to got to 'About-Us'.

Any idea what could be doing this? Or where I should be looking?

Thanks

Chipie