Correct relative path fix to also work for absolute paths + allow both http and https relative paths