Explorar el Código

fix: fix url not passing when using custom chat_link

JustSong hace 2 años
padre
commit
12ef9679a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      web/src/components/TokensTable.js

+ 1 - 1
web/src/components/TokensTable.js

@@ -96,7 +96,7 @@ const TokensTable = () => {
     let nextUrl;
   
     if (nextLink) {
-      nextUrl = nextLink + `/#/?settings={"key":"sk-${key}"}`;
+      nextUrl = nextLink + `/#/?settings={"key":"sk-${key}","url":"${serverAddress}"}`;
     } else {
       nextUrl = `https://chat.oneapi.pro/#/?settings={"key":"sk-${key}","url":"${serverAddress}"}`;
     }