fix: window.location.pathname statt gestes Wert
This commit is contained in:
@@ -12,7 +12,7 @@ const handleClearDatabase = async () => {
|
||||
}
|
||||
|
||||
// Full URL with host, current path, and clear database command
|
||||
const url = `${window.location.origin}/CPL?${currentPath}&DEDB=1`;
|
||||
const url = `${window.location.origin}/CPL?/${window.location.pathname}&DEDB=1`;
|
||||
|
||||
// Log the full URL to the console for debugging
|
||||
console.log(url);
|
||||
|
||||
Reference in New Issue
Block a user