2.4.0.2 (and 2.4.0.0) PageToRedirectToAfterSignIn no longer works

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/26/2014 9:39:20 AM
Gravatar
Total Posts 48

2.4.0.2 (and 2.4.0.0) PageToRedirectToAfterSignIn no longer works

Can someone confirm for me that PageToRedirectToAfterSignIn no longer works in 2.4.0.2 and 2.4.0.0. I have an installation of each and this user.config key no longer works for me.

Thanks

Tim

3/26/2014 10:39:15 AM
Gravatar
Total Posts 18444

Re: 2.4.0.2 (and 2.4.0.0) PageToRedirectToAfterSignIn no longer works

Hi Tim,

I just tested it here and it did not work for me either, I'm not sure when or how it got broken. Looking at the code I noticed it was expecting that setting to end with .aspx but when I tried using an url that ended with .aspx it still did not work.

I fixed it just now by editing the LoginLink.cs to make it use that setting for the return url param in the login link if the setting is not empty and that fixed it. I have pushed this fix to the source code repository so you could get the fix immediately if you can deploy a build of the latest code, otherwise expect a new release within the next few weeks.

Without that setting the normal behavior of the login link is to use the current page url for the return url param so it will redirect back to the current page after login. Redirecting back to the current page is usually the right thing to do especially for ecommerce where a user may need to sign in to proceed with checkout or for other scenarios such as needing to login in order to reply to a forum thread, we usually want to bring the user back to where he was so he can continue with what he was trying to do. Hard coding a specific url to always use is an edge case scenario which is why it was not noticed whenever that got broken.

Hope that helps,

Joe

3/26/2014 10:45:52 AM
Gravatar
Total Posts 18444

Re: 2.4.0.2 (and 2.4.0.0) PageToRedirectToAfterSignIn no longer works

If you need an urgent fix I can probably send you a patched version of mojoPortal.Web.dll for version 2.4.0.2, let me know if you need that.

3/26/2014 10:54:37 AM
Gravatar
Total Posts 48

Re: 2.4.0.2 (and 2.4.0.0) PageToRedirectToAfterSignIn no longer works

Thanks, Joe.

For pretty much all of our sites we have it set to redirect the user to the homepage. For us, the only logins are users who are editing content and sign in by going to www.thewebsite.com/admin. And 99% of our content editors do not have access to the administration page - so now they would get the access denied message after login.

If you could send me that dll, that would be awesome. We are really anxious to go ahead update our customers to 2.4.0.2 (about 40 websites) and I would prefer not waiting for the next release, which would mean another round of internal testing. We've already pushed back doing upgrades for various reasons.

Thanks!
Tim

 

3/26/2014 11:21:05 AM
Gravatar
Total Posts 18444

Re: 2.4.0.2 (and 2.4.0.0) PageToRedirectToAfterSignIn no longer works

Hi Tim,

I just sent you the patched dll for mojoPortal version 2.4.0.2 (.NET 4.).

If for some reason you need a .NET 3.5 version let me know.

Hope that helps,

Joe

3/26/2014 1:22:46 PM
Gravatar
Total Posts 48

Re: 2.4.0.2 (and 2.4.0.0) PageToRedirectToAfterSignIn no longer works

Thanks for the hotfix, Joe!

You must sign in to post in the forums. This thread is closed to new posts.