code: def _compute_page_url(self):
          
          for page in self:
              base_url = self.env['ir.config_parameter'].sudo().get_param(
                  'web.base.url',
                  default='http://localhost:8069'
              )
  
              page.page_url = (
                  '{}/web#db={}&id={}&view_type=form&'
                  'model=document.page.history').format(
                      base_url,
                      self.env.cr.dbname,
                      page.id
                  )
docs: Compute the page url.