Login widget redirect property
Hi,
I just started exploring sitefinity. I used login widget on one of my page. What i wanted to do exactly to redirect the user automatically on homepage(or some other page) after successful login.
I've gone through all the properties of login widget, but i don't see any property which does this. i.e. navigateurl.
Can you pls tell me whether there is any property out of the box or i need to go for user control.
Thanks & regards,
palak
palak,
You need to edit the "DestinationPageUrl" property (~/somepage.aspx). Also, make sure the "LoginAction" property is set to "Redirect".
Hope this helps.
Andrei
Hi Andrei,
Yes, i can switch back to FBA (form-based authentication). I am going to do that.
Hello guys,
The redirect functionality for the claims based login widget will be implemented in the upcoming Service Pack, expected in the upcoming weeks.
All the best,That's great !
Hi Palak,
We have released the service pack for 5.1 yesterday, so you may download it from your account downloads page and check the new functionality of the login widget.
Regards,
Victor Velev
the Telerik team
Waaw...
Hi Victor,
I am running Sitefinity 6.2. I have added a Login form which uses a custom MembershipProvider (in case that matters). I have tried to set the "DestinationPageUrl" property to "~/someRedirectpage.aspx?param1=abcdefg" and "mydomain.com/somepage.aspx" but in all cases the login form does not redirect to the desired destination.
Is this, perchance, a bug in Sitefinity 6.2?
Hi Guys,
Facing same problem while using 6.2. It cannot redirect to the page defined in DestinationPageUrl. Is there any official response regarding to that?
Hi,
This behavior is caused by a bug in 6.2. If you have the login widget and a login status widget on the same page, the destinationpageurl does not work and the user is not redirected.
I apologize for the inconvenience.
Hi Atanas,
Thank you for the reply. Going to build a custom control for that :)
Hi Atanas,
When you have a moment, can you please report back to this thread when you guys decide in which service release this bug fix will be included?
Thanks!
Hi,
The bug fix should be available in text release.
Regards,
Atanas Valchev
Telerik
In 6.3 this problem still exists..... :(
What is a workaround for that?
Hello Frank,
I have dag a login widget on a page and set the property "DestinationPageUrl" to another page (for example: "/page/childpage") and it redirects after successful login to that page.
I have checked this on 6.3 and 7.0 and it works as expected.
Regards,
Svetoslav Manchev
Telerik
We had an "login status widget" in the master template which prevents from redirecting... Strange this widgets don't work easily together.... But it's working.
Hi All,
I have login widget and login/logout button in same page, i want to show the if user/admin/author logs, the login/logout button is shown, but login widget is also getting shown in that page, i have set the permission for login/logout button[shown for after login] and login widget [only shown for anonymous users], i tried so much but as it show because it has administrators permission. Is there any chance not to show the login widget as administrator logs in.
Hi Sravn,
In order to achieve your need you can try the following:
- Open the More > Permissions menu of the Login widget
- Set View permissions to Everyone
- Set Deny permissions to Authenticated users (screenshot)
This will hide the login widget when the user is logged (note that the administrators could not be restricted).
In order to restrict all the authenticated users to view the widget you can do this for example in code behind of a custom layout widget. Have in mind that you should not restrict the view in design/preview mode.
Regards,
Svetoslav Manchev
Telerik