Fixed #3: tested with relative and absolute urls, including from blogspot and wordpress.