Fix subfolder hosting not working

Fix wrong `location` used
This commit is contained in:
Lim Chee Aun 2023-12-12 08:34:43 +08:00
parent 82195a8db0
commit f213a8e094

View file

@ -261,7 +261,11 @@ function App() {
if (code) {
console.log({ code });
// Clear the code from the URL
window.history.replaceState({}, document.title, location.pathname || '/');
window.history.replaceState(
{},
document.title,
window.location.pathname || '/',
);
const clientID = store.session.get('clientID');
const clientSecret = store.session.get('clientSecret');