K
K
Kirill Ivanov2020-04-22 11:49:47
JavaScript
Kirill Ivanov, 2020-04-22 11:49:47

How to remove get parameter from URL?

I'm implementing a login/logout function in a react-ionics application, and I've encountered the following problem. After I logged in via Facebook (I used the react-facebook-login library), I can't log out. You need to go to Facebook itself and log out of your account there.

In React, I can change the state to isLoggedIn: false, but the parameter still remains in the address bar, and after refreshing the page, the user remains logged in. Is it possible to remove these characters in the url from react on click?
5ea004fe69b22993867554.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question