ref cannot currently get home page, sections etc., but I consider them as static (i.e. they don’t move around, and if they did move around I would have to change the refs as well) so I have never found a use for that.
You should use Permalink
or Relpermalink
, not URL
.
As to offline support I suggest looking at relativeURLs=true
.