Dnn.Platform icon indicating copy to clipboard operation
Dnn.Platform copied to clipboard

Redirect after login not working when "Login page" is set

Open wbonekamp opened this issue 3 years ago • 11 comments

After upgrading from 9.6.2. to 9.10.2 we have an issue with the redirect after login not working anymore...

The Redirect after login doesn't work when you have a custom login page (inloggen) set in "Site Settings" - 'Site Behavior" - "Login Page" is set to page from dropdown (Inloggen).

When the "Login page"is not set the redirect after login does work.

Is there a fix or workaround for this problem.

Steps to reproduce

List the precise steps to reproduce the bug:

  1. Go to 'Site Settings';
  2. Click on 'Site Behavior' tab;
  3. Scroll to 'Login page' and select the custom page with the account login module on it;
  4. Go to 'Redirect After login;
  5. Select the page to redirect to.

Current behavior

Does not redirect to selected page but redirects to the home page.

Expected behavior

Should redirect to the page selected at Redirect After login;

Error information

no errors in log or console

Affected version

  • [ ] 09.10.x release candidate
  • [ ] 09.10.2 latest supported release

Affected browser

all browsers

wbonekamp avatar Mar 09 '22 10:03 wbonekamp

We recently experienced a similar issue after upgrading our site from DNN version 07.00.02 to 09.10.1

Only our default "Login" page would "Redirect After Login" to the appropriate page set on Site Settings/Site Behavior after the upgrade. Our other two custom login pages would not redirect after someone signed in. These pages were assign the login layout and used also used the Account Login module.

Instead of redirecting, the login page would refresh after clicking "Login". If your user was in the "Administrator" role, the login form would still be visible and the Persona bar would show. If you weren't an "Administrator" the login form would be hidden.

We were able to resolve the redirect issue with our other login pages by going to Site Settings -> Site Behavior, locating the "Login Page" drop down, then selecting the default "Login" page, then saved. It looks like after the upgrade the "Login Page" drop down was no longer assigned to any page, it showed "None Specified" as selected.

dhleblanc avatar Mar 16 '22 19:03 dhleblanc

We have detected this issue has not had any activity during the last 90 days. That could mean this issue is no longer relevant and/or nobody has found the necessary time to address the issue. We are trying to keep the list of open issues limited to those issues that are relevant to the majority and to close the ones that have become 'stale' (inactive). If no further activity is detected within the next 14 days, the issue will be closed automatically. If new comments are are posted and/or a solution (pull request) is submitted for review that references this issue, the issue will not be closed. Closed issues can be reopened at any time in the future. Please remember those participating in this open source project are volunteers trying to help others and creating a better DNN Platform for all. Thank you for your continued involvement and contributions!

stale[bot] avatar Jul 31 '22 03:07 stale[bot]

We're running v. 09.10.01 and all redirects set in the Site Behaviour > Default Pages take us to the home page, so this is still an ongoing issue!

JP-npd avatar Aug 15 '22 23:08 JP-npd

is it a multilanguage website or default en-us?

wbonekamp avatar Aug 16 '22 07:08 wbonekamp

Default en-us

JP-npd avatar Aug 16 '22 10:08 JP-npd

Look like it's an issue/bug with initial loading or saving the login page at Site Settings -> Site Behavior

wbonekamp avatar Aug 16 '22 11:08 wbonekamp

Is it an upgraded DNN instance or a clean install? Any third party modules installed?

wbonekamp avatar Aug 16 '22 11:08 wbonekamp

It's an upgrade, not sure if v. 09.10.02 would fix it.

We've got a few third party modules: DNNGo template, EasyDNNAccessibilityModule, GDPR Cookie Consent, WSC Slider Revolution Importer.

JP-npd avatar Aug 16 '22 12:08 JP-npd

I don't think the upgrade to DNN 9.10.2 will fix the issue... but you can try.

wbonekamp avatar Aug 16 '22 12:08 wbonekamp

does EasyDNNAccessibilityModule use a url provider module?

wbonekamp avatar Aug 16 '22 12:08 wbonekamp

It doesn't look like it, I deleted the module from all pages and the issue is still there.

JP-npd avatar Aug 16 '22 12:08 JP-npd

I could not reproduce this issue, if there are any more details that could help make it happen, please comment and I'll reopen it.

valadas avatar Jan 18 '23 01:01 valadas

I'm seeing the problem on 9.11.1 - I'm about to upgrade to 9.11.2 and I'll check again.

the logout button links to /ctl/logout but the login button links to ?return= and seems to ignore the page set for . If I don't click the login button, but instead go to site.com/ and login, it redirects after login to the page correctly.

dgingold avatar May 07 '23 22:05 dgingold

upgraded to 9.11.2. still see the problem.

dgingold avatar May 08 '23 02:05 dgingold

Are you using any third party login modules?

mitchelsellers avatar May 08 '23 13:05 mitchelsellers

No.

dgingold avatar May 08 '23 14:05 dgingold

Did some testing today in 9.11.2 and the issue still exist. So dgingold is right.

It's a multilanguage issue

wbonekamp avatar Jun 15 '23 07:06 wbonekamp

@wbonekamp Can you write clear steps to make this issue happen. I:

  • Installed 9.6.2
  • Enabled localization with (fr-fr)
  • Made all pages localizable and published them
  • Created a custom login page
  • Set the redirect after login and saved in each language

It worked for me. So the only way to make this issue move forward would be to figure out how to actually get into that situation which I was not able to.

valadas avatar Jun 15 '23 15:06 valadas

The issue is still happening on version 9.12. Fresh install.

The Redirect after login is still not working, it is always goes back to Home Page.

EDIT: Btw, I'm using 3rd party module - Active Directory Authentication on login page.

reeyon avatar Aug 20 '23 01:08 reeyon