okfn/ckan — comment on commit 37e711cd2fc677650be8b2278bcd2d888ff74bc6
File:  line 0
By davidread:

using g.site_url here was a quick fix until we knew how routes achieved (automatically) it for the vast majority of our links. g.site_url was introduced as a convenience to get the host name for the site when providing the package property: dict['ckan_url'] = '%s/dataset/%s' % (site_url, self.name). Therefore if you forget to set g.site_url then it is not important. If you start using it for occasional links then it is asking for support requests.