mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-13 09:28:50 +01:00
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) {
|
||||
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');
|
||||
|
|
Loading…
Reference in a new issue