diff --git a/website/editor/src/github/init.js b/website/editor/src/github/init.js
index <HASH>..<HASH> 100644
--- a/website/editor/src/github/init.js
+++ b/website/editor/src/github/init.js
@@ -16,7 +16,7 @@ const auth = async (cb) => {
       if (res.ok) {
         const {token} = await res.json()
         setAuth(token)
-        location.replace(location.pathname)
+        history.replaceState({}, '', location.origin)
       }
     } catch (e) {
       setAuth(null)
add history.replaceState after auth flow