two permalink bugs in notifications

fixed permalink bug
fied specs