Change fileUrl cleaning logic to use location origin instead of location href
Change fileUrl cleaning logic to use location origin instead of location href

Fixes the issue of wrong fileUrl on other urls than /
opbeat/opbeat-angular,opbeat/opbeat-react,opbeat/opbeat-react,opbeat/opbeat-angular,jahtalab/opbeat-js,opbeat/opbeat-angular,opbeat/opbeat-react,opbeat/opbeat-js-core,jahtalab/opbeat-js,jahtalab/opbeat-js,opbeat/opbeat-js-core