Find out previous page.

How do I find out what the previous page was? I’m using Vaadin Flow and the Router annotations.
Basically, I want to find out if the user came from the “Login” page rather than any other page.

Hi Armando,

I haven’t looked into this at all, but can you use the Referere header field?

There is also a history API: