Fix subfolder hosting not working
Fix wrong `location` used
This commit is contained in:
parent
82195a8db0
commit
f213a8e094
1 changed files with 5 additions and 1 deletions
|
@ -261,7 +261,11 @@ function App() {
|
||||||
if (code) {
|
if (code) {
|
||||||
console.log({ code });
|
console.log({ code });
|
||||||
// Clear the code from the URL
|
// 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 clientID = store.session.get('clientID');
|
||||||
const clientSecret = store.session.get('clientSecret');
|
const clientSecret = store.session.get('clientSecret');
|
||||||
|
|
Loading…
Add table
Reference in a new issue