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

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();