fix: choose language link for local dev (#9215)

@superset-ui/connection will add protocol and host to an "endpoint" call.

`e.currentTarget.href` may return the full URL instead of the relative
url.
This commit is contained in:
Erik Ritter 2020-03-04 17:08:23 -08:00 committed by GitHub
parent 969bc87431
commit b1d83ba8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ export default function setupApp() {
) {
ev.preventDefault();
SupersetClient.get({
endpoint: ev.currentTarget.href,
url: ev.currentTarget.href,
parseMethod: null,
}).then(() => {
location.reload();