Mountain View 1600, CA 94043
+1 650-253-0000
name@example.com
Web
Site
Search
Register
Login
DNN Home
Services
-
DotNetNuke Support
-
CRM Systems
DNN
-
DotNetNuke Modules
-
Module Downloads
-
Module Upgrade Policy
DNN Support
-
Module Update News
-
Knowledge Base
-
License Management
-
Invoice History
Module Downloads
Blog
Store
Contact Us
-
About Us
Search
Home
1
2
3
4
5
Home
Support
Advance Login M...
Use Redirection based on role and return URLS's
Previous
Next
5/31/2010 7:40 PM
Ton Blokhuizen
Joined: 2/16/2010
Posts: 1
Use Redirection based on role and return URLS's
(Netherlands)
We've got several userroles defined on our site.
Each userrole has got permissions to view typpical pages on our portal.
Normally when you enter our site, you will be prompted to login and after login, based on his/her userrole you will be redirected to the "home page" specially for that userrole.
So far no problem.
But, when the base url contains a redirect eg."www.yourdomain.com/default.aspx?Redirect=page2.aspx" the user is NOT redirected to page2.aspx
When I disable the property "Override return URL's" the redirection based upon the userrole dos not work anymore.
I woul really like to use both methods to redirect my users.
You can imagine that I can send an e-mail containing a link wich directs to a specific thread inside a forum.
but the forum is only available for registerd users, so login is required.
When you click on the link, the site responds to it redirecting the user to the longinpage and adding the redirect url to the thread in the URL. But when you login the user will be redirected to the redirect URL set up in the UserRoleRedirection and does not respond on the redirect in the URL.
Please help!
Thank you
Ton Blokhuizen
5/31/2010 9:13 PM
DNN Module Support
Joined: 8/28/2006
Posts: 2065
Re: Use Redirection based on role and return URLS's
(Australia)
First up, update to the latest version as this operates a little differently.
There is an underlying problem with all this is:
A user can ask indirectly for 1 of 4 locations.
1. A URL clicked on that is secured and requires login.
2. A general request from the user to login to the site for no particular reason, delivering the user to the home page defined in DNN.
3. A redirection after login authentication based on a rule you set in the module
4. A landing back on the page they user was no when they clicked login button because nothing else is defined in DNN or in the module.
You are asking if a return URL can over ride the default redirection. This is possible in both the new version and old, and is actually what we have set.
Probably the easy way to do this is to is set the redirect URL to the page in question and ensure that you do not override the redirect url.
Page 1 of 1
Previous
Next
Home
Support
Advance Login M...
Use Redirection based on role and return URLS's