Better fix for relative URLs

An improvement to #2711 

cc @koke 
Shouldn't this be `self.post.permaLink`? I'm thinking of links like `<a href="#section-1">`.

Also, it shouldn't, but could `postURL` be `nil`?