Use site.path and self.full_path instead of #url when making page links.