[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

@@ -25,9 +25,6 @@ export function getURIDirectory(formData, endpointType = 'base') {
if (['json', 'csv', 'query'].indexOf(endpointType) >= 0) {
directory = '/superset/explore_json/';
}
const [datasource_id, datasource_type] = formData.datasource.split('__');
directory += `${datasource_type}/${datasource_id}/`;
return directory;
}