Skip to content

Commit 83d3403

Browse files
committed
Specify base for URL construction
1 parent d60dd14 commit 83d3403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/utils/url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { isEmpty } from '@ember/utils';
77
* @param {string} url
88
*/
99
export function appendToQueryParam(urlString, param, newValue) {
10-
let url = new URL(urlString);
10+
let url = new URL(urlString, document.body.baseURI);
1111
if (isEmpty(newValue)) {
1212
return url.href;
1313
}

0 commit comments

Comments
 (0)