function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
John ClevelandJohn Cleveland 

Direct user to VF page on login

We have built a acknowledgment VF page that has a controller which checks to see if the user has acknowledged the latest message and if they have it will route them to home.  I am trying to figure out how to have users routed to this VF page after logging in so that if they need to acknowledge one they are there, if they don't they will be directed to home.  We do use lightning.  Any ideas?
Suraj TripathiSuraj Tripathi

Hi john,

You can try this piece of code to open visualforce page from lightning method.
 

window.open('/apex/nameofVfPage');


Regards,​
Suraj