Fix clearance of notifications when clicking links

In particular, spring notifications.