Hello DNN experts,
I wanted to share some of my findings and see if I am right.
So I have a dnn website which has a requirement to redirect to specific page after login.
The website used to run on dnn 6 and redirection was behaving perfectly fine.
I have updated the website to dnn 9.1.1 recently and redirection is no longer working properly.
It works only if:
1.open browser and type in website root url and do not browse anywhere in the site
2.click login (returnurl query string is blank)
3. fill in username and password and click login
4. user gets redirected where it suppose to.
It does not work if:
1.open browser and type in website root url and browse anywhere in the site.
2.click login (returnurl query string is populated with the url of previous page)
3. fill in username and password and click login
4. user gets redirected where it was previously (It should redirect to the "Redirect_AfterLogin" set in the portalsettings)
I thought that something is wrong with my dnn configuration but could not find what is wrong.
Then started to browse git dnn source code and I saw some changes in this area.
Please see the code before change and after change.
So based on that code analysis I believe that in dnn 7.5 > "Redirect_AfterLogin" setting kicks off only when returnurl query string is blank
otherwise it redirects you to returnurl query string parameter.
So my questions are:
1. Am I right on this?
2. Was this change done on purpose or it was just accidentally included in the release and should be considered as a bug?
Thanks
Tadas