Fixes #7
Solves bug where leave page confirmation on recipe page always was triggered