Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've chosen my dashboard as my home page, using the link on the Dashboard page.
It works fine if I click on the Drupal TM at the top of the screen - I go to the Dashboard.
But if I come to drupal.org and login, I am redirected to the Drupal home page, not to the Dashboard. It seems like I should end up at the Dashboard, since I've chosen that as my home page?
Comment | File | Size | Author |
---|---|---|---|
#8 | drupalorg_crossite-removedestinationonome-965614-8.patch | 819 bytes | mallezie |
#7 | drupalorg-redirecttodashboardafterlogin-965614-7.patch | 584 bytes | mallezie |
#5 | make dashboard the homepage.png | 40.91 KB | Shyamala |
Comments
Comment #1
lisarex CreditAttribution: lisarex commentedMoving this to the Drupalorg customizations project, as part of closing down the Redesign project.
Comment #2
mgiffordThis is still an issue in D7.
I'd have thought this would do it in all/modules/drupalorg/drupalorg/drupalorg.module
but doesn't seem to.
Comment #3
mgiffordComment #4
Shyamala CreditAttribution: Shyamala commentedComment #5
Shyamala CreditAttribution: Shyamala commentedShould be based on the settings on the Dashboard page.
Comment #6
mallezieIt seems the setting is correct. When you are logged in, and you access drupal.org/ it redirects to the dashboard.
It doesn't work when you just login.
When you login, using the login link, you get redirected to /home (which is the front page, but the if checks on url).
That's probably an easy fix.
When you login going directly to /user you get redirected to /u/dries (as dries).
Adding the first as extra condition could fix the first problem. The second one needs more thought.
I'll work further on this, and provide a patch.
Comment #7
mallezieI think this exists out of 2 parts.
First part is to redirect to the dashboard on login. This is attached in the patch.
This redirects a user when logging in on drupal.org/user
I'll attach a second patch (probably this will be for drupalorg_crossite) to adjust the login link in the menu (this is now to /user?destination=home, i think this should be without the destination parameter). Since changing /home to the dashboard is probably a worse idea.
Comment #8
mallezieAnd attached there is a patch for drupalorg_crossite which removes the destination parameter on the login-link for the home page.
Comment #9
Shyamala CreditAttribution: Shyamala commentedThe logo when logged in works perfectly. i.e based on your selection the logo links to either the drupal home page or dashboard. We only need to change the redirect on login from /home to drupal.org.
Comment #10
mallezieThe situation was that when you selected the dashboard to your homepage drupal.org/ brings you there. drupal.org/home still brings you to the frontpage (this is the expected behavior).
Patch 1 does the following (the drupalorg patch)
When you login via the /user page it redirects you to your dashboard (if that's set as your homepage)
Patch 2 does the following (drupalorg_crossite patch)
This changes the menu to remove the redirect to /home when you're on the homepage. That way when you login on the home page you'll get redirected to your dashboard instead of to /home
In reply to #9
The logo links you to drupal.org/ which is your dashboard, and the link in the menu links you to drupal.org/home (this is the current behavior). I'm not sure we should change te logo link to /home but that should probably be a follow-up issue
Comment #12
drumm$account
is not necessarily a fully-loaded user object, so I addedComment #13
drummComment #15
drummCommitted with minor code style changes.
Comment #16
drummNow deployed on Drupal.org.
Anonymous requests to Drupal.org are cached in a few different layers, that have not been cleared. The home page link to log in will keep
?destination=home
for a few minutes, as those clear out.