You could create a Link
that has a setReponsePage(YourClass.class, pageParameters)
in the onClick
. However, you lose the state that the previous page had.
Alternatively, you could try a javascript:history.go(-1)
. This would try to go back to the previous page within the browser.
It totally depends on what you define as 'the last page'