def get_haunted_url(self): """Get content url. """ if self._content_path is None: return None object = self.get_root().unrestrictedTraverse(self._content_path, None) if object is None: return '/'.join(self._content_path) pad = PathAdapter(self.REQUEST) url = pad.pathToUrlPath('/'.join(object.getPhysicalPath())) return url