Issue 573 - Resolve relative URLs in the beforeload handler on Safari