fix(website): enable // in token form URL input (#7923)

Fixes: #7861
This commit is contained in:
Nazar Poshtarenko 2024-10-21 19:24:24 +03:00 committed by GitHub
parent 1466d44b57
commit 4578674e30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,9 +76,7 @@ const TokenForm = ({
} else if (locationSetting === 'localhost') {
url = 'http://localhost:3000';
} else {
url = baseUrl?.endsWith('/')
? baseUrl.substring(0, baseUrl.length - 1)
: baseUrl;
url = baseUrl;
}
setBaseUrl(url);