Moved logic for urls in notifications.