(bug 27328) Redo r82218 properly, expanding URLs with absolute paths