Added optional "Leaving this site now" modal message support when viewing a resource