[WiP] Cleanup & fix URL scheme for the explore view (#4490)

* Improve URLs

* Fix js tests
This commit is contained in:
Maxime Beauchemin
2018-02-27 15:08:06 -08:00
committed by Grace Guo
parent bcca1717f2
commit 83524f97d7
9 changed files with 114 additions and 60 deletions

View File

@@ -23,9 +23,8 @@ export default class AddSliceContainer extends React.PureComponent {
}
exploreUrl() {
const baseUrl = `/superset/explore/${this.state.datasourceType}/${this.state.datasourceId}`;
const formData = encodeURIComponent(JSON.stringify({ viz_type: this.state.visType }));
return `${baseUrl}?form_data=${formData}`;
return `/superset/explore/?form_data=${formData}`;
}
gotoSlice() {