Justin Beitler
 Nuke Active Member Posts:21

 |
| 03/26/2010 11:01 AM |
|
Hello everyone...
I'm trying to accomplish a very simple task that I THINK dotnetnuke is actually designed to do (so please don't tell me about third party modules unless you know DNN is not designed to actually do this)
All i want it to do is take the user to the last page they were viewing after they register...
Originally when I setup DNN (5.2) I had setup users to be redirected to a welcome screen after they logged in or out or registered (it's a setting within the USER SETTINGS page)
I noticed whenever a user clicked on LOGIN, that the address bar included a variable ?RETURNURL=.. and then the address of the last page they looked at.. SO.. I removed those redirect settings, and now when someone logs in they are redirected back to the same page they were looking at (PERFECT!) Only problem is that when a new user registers, they are NOT redirected back to the last page they were looking at (but rather are always directed to my home screen) The variable RETURNURL is still there, but appears to be getting ignored... Any ideas from anyone? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 03/26/2010 11:08 AM |
|
What did you do to remove "those redirect settings"? |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Justin Beitler
 Nuke Active Member Posts:21

 |
| 03/26/2010 11:35 AM |
|
I simply went to the USERS area, then USER SETTINGS, and then changed the setting "REDIRECT AFTER REGISTRATION" to the "blank" setting
Again, this appears to have done the trick for after a LOGIN, but hasn't solved the issue for registration |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 03/26/2010 2:30 PM |
|
That should have done the trick. Can you look at the URL in the return URL part of the querystring? If you use that as an address, does it work?
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Justin Beitler
 Nuke Active Member Posts:21

 |
| 03/26/2010 2:45 PM |
|
Hi Joe, thanks for all the prompt replies... I think you may be on to something, but I still can't entirely figure it out... The "return URL" for LOGIN is just the relative path (i.e. /home/lastpage.aspx), but when I click REGISTER, the "return URL" is the fully qualified link (i.e. http://www.mywebsite.com/home/lastpage.aspx) This would lead me to beleive that what is happening is that the fully qualified link is being propageted where the relative path should be, and thus kicking an error (so the page would basically be trying to load " http://www.mywebsite.com/http://www...tpage.aspx" and obviously would just kick back to the home page) Anyways, that's my take on what's happening. The only question now is how to fix it... Do you have any ideas? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 03/26/2010 3:02 PM |
|
Yes, I think that you are on the right track. If you look at the behavior on this site, the return URL is a relative path both for register and login.
Make sure that you haven't entered a full url as a portalalias or something like that.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Justin Beitler
 Nuke Active Member Posts:21

 |
| 03/26/2010 3:06 PM |
|
yes, the portal alias in SITE SETTINGS is "www.mysite.com/home" so that may be the problem.. Now my issue is that I've never done anything with portal aliases and, to be honest, have no idea what it's actually there for in the first place... (this was all setup automatically when the application was installed at GoDaddy) unfortunately, it looks like I can't actually edit this alias, however I'm more than comfortable to dig around in the database itself and just manually change it (if that's what is necessary). I can, however, add more aliases, so not sure if that would do it.. Can you bring me up to speed here? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 03/26/2010 3:21 PM |
|
Hmmm.
I've had second thoughts about that. If you have only one portal alias entry and that is it, don't change it.
It's got to be something else ...
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 03/26/2010 3:30 PM |
|
If you read VB, you can look at admin\skins\login.ascx.vb and admin\skins\user.ascx.vb to see how those actually are constructed. I've stared at the code a few minutes and nothing jumps out.
Do you have any custom login or registration, have you specified a custom login or registration page, or a custom home or splash page?
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Justin Beitler
 Nuke Active Member Posts:21

 |
| 03/26/2010 3:53 PM |
|
Nope, it's all standard DNN stuff... Using version 05.02.02 (73) I'll poke around in the VB files and see if I find anything.. let me know if you catch something... |
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 03/26/2010 3:53 PM |
|
On another site, register had the full URL and login had the relative URL ...
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Justin Beitler
 Nuke Active Member Posts:21

 |
| 03/26/2010 3:55 PM |
|
Hmmm... Weird... Maybe this is a bug in 5.02 ... I think I'll post it to the DNN home site and see if any developers there have any info on a bug like this... |
|
|
|
|
Cam Posts:99

 |
| 10/16/2013 6:46 PM |
|
Hi, Was this ever resolved? I am encountering the same problem after registering. it doesn't go back to its previous page. |
|
|
|
|