Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks
wbonekamp opened this issue Mar 9, 2022 · 19 comments
Closed
2 tasks

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

wbonekamp opened this issue Mar 9, 2022 · 19 comments

Comments

@wbonekamp
Copy link

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

@dhleblanc
Copy link

dhleblanc commented Mar 16, 2022

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.

@stale
Copy link

stale bot commented Jul 31, 2022

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 stale bot added the stale label Jul 31, 2022
@JP-npd
Copy link

JP-npd commented Aug 15, 2022

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!

@stale stale bot removed the stale label Aug 15, 2022
@wbonekamp
Copy link
Author

is it a multilanguage website or default en-us?

@JP-npd
Copy link

JP-npd commented Aug 16, 2022

Default en-us

@wbonekamp
Copy link
Author

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

@wbonekamp
Copy link
Author

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

@JP-npd
Copy link

JP-npd commented Aug 16, 2022

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.

@wbonekamp
Copy link
Author

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

@wbonekamp
Copy link
Author

does EasyDNNAccessibilityModule use a url provider module?

@JP-npd
Copy link

JP-npd commented Aug 16, 2022

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

@valadas
Copy link
Contributor

valadas commented Jan 18, 2023

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 valadas closed this as completed Jan 18, 2023
@dgingold
Copy link

dgingold commented May 7, 2023

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
Copy link

dgingold commented May 8, 2023

upgraded to 9.11.2. still see the problem.

@mitchelsellers
Copy link
Contributor

Are you using any third party login modules?

@dgingold
Copy link

dgingold commented May 8, 2023

No.

@wbonekamp
Copy link
Author

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

It's a multilanguage issue

@valadas
Copy link
Contributor

valadas commented Jun 15, 2023

@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.

@reeyon
Copy link

reeyon commented Aug 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants