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 have a simple block that displays the login and register links for anonymous users and the username with a logout link for logged in users. When I click on login, the modal form works great. However, when the modal closes, the page is not refreshed so it is difficult to tell if the user actually logged in or not. What I would like to do is have the page refresh upon successful login, or even better just the one block so it will show "Welcome, User (logout)" instead of the Login / Register links after the modal closes.
Anyone have any ideas how this can be achieved?
Comments
Comment #1
bancarddata CreditAttribution: bancarddata commentedStrange it seems to be refreshing the page now. Not sure why it wasn't before.
Comment #2
aalireza CreditAttribution: aalireza commentedi am using 7.x-1.x-dev version and have same problem,
reload not working after login.
Comment #3
GlennVl CreditAttribution: GlennVl commentedI have the same problem, any solutions for this already?
Comment #4
JieXiannn CreditAttribution: JieXiannn commentedI have this problem too. It works fine locally but not when I've uploaded it to my hosting service
Comment #5
petednz CreditAttribution: petednz commentedAt the risk of being told not to reopen this, others are saying 'this isn't happening'. Here is my scenario. I have a View, and provide a link on that view which uses Modal Forms to load up a webform with eg ?cid=23 based on data in that row of the view. The webform pop up works beautifully and am really pleased i tried out this module.
My 'hope' would be that after saving/closing the form, somehow the view display (page) would have refreshed so that the new data just added via the webform would show on my table.
Any thoughts or is this just a 'you got to be kidding'
(Edit: I realise my request is not related to 'login' but i thought this might be a more generic 'how to make the page reload after using modal form' ticket
Comment #6
chetan-singhal CreditAttribution: chetan-singhal commentedhttps://www.drupal.org/project/ctools/issues/1485964
this will help