Skip to content

Commit bdbb612

Browse files
mamasodrew-gross
mamaso
authored andcommitted
Improve AJAX matching for mount paths urls
1 parent 1a048c2 commit bdbb612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/AJAX.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function request(method, url, body, abortable = false, withCredentials =
2222
if (!url.startsWith('http://')
2323
&& !url.startsWith('https://')
2424
&& basePath.length
25-
&& !url.startsWith(basePath)) {
25+
&& !url.startsWith(basePath + '/')) {
2626
url = basePath + url;
2727
}
2828
let xhr = new XMLHttpRequest();

0 commit comments

Comments
 (0)