Describe the bug
I'm using moderation_dashboard and acquia_cms_common module. I don't want to redirect the moderation dashboard page after login. so I unchecked Redirect on login Moderation Dashboard Settings page.
When login to site, redirect to non-existent route (/user/{user}/moderation/dashboard) so it shows 404 not found, neither Moderation dashboard page nor account page.
Enabled moderation_dashboard module and disabled Redirect on login checkbox at Moderation Dashboard Settings.
Created an user with one of the following roles (please see the related source)
content_author
content_editor
content_administrator
administrator
This behavior does not occur with user 1 account
To Reproduce
Steps to reproduce the behavior, ideally starting from a fresh install of Acquia CMS:
Run composer create-project acquia/drupal-recommended-project project
Run ./vendor/bin/acms acms:install
Select acquia_cms_enterprise_low_code and then Acquia CMS installed
Create testuser user with administrator role
Move to Configuration > People > Moderation Dashboard (URL: /admin/config/people/moderation_dashboard)
Disable Redirect on login
Logout of the site
Login with testuser
Redirect /user/{user}/moderation/dashboard page and see 404 not found
Expected behavior
When disabled Redirect on login checkbox at Moderation Dashboard Settings, it should redirect to account page, not Moderation dashboard.
Detailed error output
Please provide as much detail about the error you're seeing as possible. Examples include errors present in the browser, Javascript console, Drush command error output, and server logs in Acquia Cloud.
System information
Operating system type: Ubuntu (I'm using Acquia Cloud Enterprise / Cloud Classic)
Describe the bug I'm using moderation_dashboard and acquia_cms_common module. I don't want to redirect the moderation dashboard page after login. so I unchecked
Redirect on login
Moderation Dashboard Settings page. When login to site, redirect to non-existent route (/user/{user}/moderation/dashboard
) so it shows 404 not found, neither Moderation dashboard page nor account page.Likely suspicious code: https://git.drupalcode.org/project/acquia_cms_common/-/blob/3.1.2/src/RedirectHandler.php#L124
Here is the situation:
Redirect on login
checkbox at Moderation Dashboard Settings.To Reproduce Steps to reproduce the behavior, ideally starting from a fresh install of Acquia CMS:
composer create-project acquia/drupal-recommended-project project
./vendor/bin/acms acms:install
acquia_cms_enterprise_low_code
and then Acquia CMS installedtestuser
user with administrator roleRedirect on login
/user/{user}/moderation/dashboard
page and see 404 not foundExpected behavior When disabled
Redirect on login
checkbox at Moderation Dashboard Settings, it should redirect to account page, not Moderation dashboard.Detailed error output Please provide as much detail about the error you're seeing as possible. Examples include errors present in the browser, Javascript console, Drush command error output, and server logs in Acquia Cloud.
System information
Additional context N/A