Fixed url fixer logic
This commit is contained in:
parent
2a6a0c47d6
commit
e58fd2ebe1
|
@ -24,9 +24,9 @@ const doAjax = (actionPath, data, action) => {
|
||||||
const formatURL = (basePath) => {
|
const formatURL = (basePath) => {
|
||||||
url = window.location.href;
|
url = window.location.href;
|
||||||
if ( url.endsWith('/') )
|
if ( url.endsWith('/') )
|
||||||
return url + '/' + basePath;
|
|
||||||
else
|
|
||||||
return url + basePath;
|
return url + basePath;
|
||||||
|
else
|
||||||
|
return url + '/' + basePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
const fetchData = async (url) => {
|
const fetchData = async (url) => {
|
||||||
|
|
Loading…
Reference in New Issue