Hello All,
I have implement a Rest API to get and handle some X data. There is a business need, when the X data received, to redirect the user to a specific screen (regardless the current screen where is the user)
I don't see any action to do it on the left menu
Any suggestions?
It's not possible to redirect to a screen from a Server Action. btw could you please explain your scenario in detail ? Are you invoking the Rest API in a timer ?
Hello @Siya,
thank you for your reply.
There is a third party system that provides some client details to my environment through rest api.
Each time that these details delivered to my system, I want to user to be redirected to the client tab automatically as for this client the X data delivered.
Any suggestion?
Basically you are exposing a REST end point and some third party system is pushing data to your application. Please confirm.
Since this is a web application there will be many users. When you said "user to be redirected to the client tab automatically" does it mean every users of your application should be redirected ?
Please note that you cannot directly invoke screen direct from a REST endpoint call back or from a server action.
There are different solutions available to notify the clients of an events from the server eg: Firebase, SSE, Pusher etc. I have implemented a solution using Pusher and the same can be found in this discussion