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) => {
|
||||
url = window.location.href;
|
||||
if ( url.endsWith('/') )
|
||||
return url + '/' + basePath;
|
||||
else
|
||||
return url + basePath;
|
||||
else
|
||||
return url + '/' + basePath;
|
||||
}
|
||||
|
||||
const fetchData = async (url) => {
|
||||
|
|
Loading…
Reference in New Issue