Addition of a beforeLinkClicked function that allow to do some treatement before open up a notification link