Absolute URLs
Categories
Component ID
384434
Component name
Absolute URLs
Component type
module
Component security advisory coverage
not-covered
Downloads
2684
Component created
Component changed
Component body
This very simple module causes all of your site's internal URLs to be rendered as absolute URLs (e.g., "http://mysite/node/whatever") instead of relative URLs ("/node/whatever"). Some people think this is useful for SEO.
All this does is modify the global base_path variable in an init() hook so that all calls to base_path() will get an absolute URL. So, of course, if you or your module/theme don't use base_path(), you won't get the benefit of this.
