From b3854afb2e279494f5e603306c8ad5043f95569a Mon Sep 17 00:00:00 2001 From: Jesse Yang Date: Wed, 26 Feb 2020 18:53:42 -0800 Subject: [PATCH] fix: choose language link for local dev @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. --- superset-frontend/src/setup/setupApp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/setup/setupApp.ts b/superset-frontend/src/setup/setupApp.ts index d1c3dd9fef30..ed37e1f42624 100644 --- a/superset-frontend/src/setup/setupApp.ts +++ b/superset-frontend/src/setup/setupApp.ts @@ -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();