fix(core): parse URLs using the browser's DOM API