Added permalink stuff for notifications