forked from phoenix/litellm-mirror
(fix) proxy dashboard
This commit is contained in:
parent
82091eb03a
commit
8dc78ca2a4
2 changed files with 58 additions and 42 deletions
|
@ -44,10 +44,12 @@ const UserDashboard = () => {
|
|||
}
|
||||
else if (userID == null || accessToken == null) {
|
||||
// redirect to page: ProxyBaseUrl/google-login/key/generate
|
||||
sessionStorage.setItem('returnUrl', window.location.href);
|
||||
const baseUrl = proxyBaseUrl.endsWith('/') ? proxyBaseUrl : proxyBaseUrl + '/';
|
||||
|
||||
// Now you can construct the full URL
|
||||
const url = `${baseUrl}google-login/key/generate`;
|
||||
|
||||
|
||||
window.location.href = `${proxyBaseUrl}/google-login/key/generate`;
|
||||
window.location.href = url;
|
||||
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue