I need a quick help.

There is this one problem with my wix website, and it’s giving me hell of a time.
The problem is that when a user logs in he or she can not see the dashboard button until they refresh/reload the web page and not everyone knows that and often get people complaining so much that they can not find the button to their dashboard.

I tried using a redirect after login code using the wixLocation on the home page to redirect the user to the dashboard when they log in, and that did not solve my problem because after they log in until they once again refresh the page they wont be redirected.

I figured out that if I can know the code that can automatically refresh the page whenever a use logs in, then I am sure that my problem will be solved. so kindly help me out.

You can check the website: www.userlanceafrica.com

Hi,
Use onLogin to set a function that runs when a user logs in.