Browse Source

HUE-7117 [importer] Fix issue with missing trailing slash

Would create table with default names like:
default?sourcetype=hive.query-hive-360
Romain Rigaux 8 years ago
parent
commit
f4bbd8b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      desktop/core/src/desktop/templates/assist.mako

+ 2 - 2
desktop/core/src/desktop/templates/assist.mako

@@ -773,12 +773,12 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, get_ord
       % if ENABLE_NEW_CREATE_TABLE.get():
       % if ENABLE_NEW_CREATE_TABLE.get():
         <!-- ko if: sourceType === 'hive' || sourceType === 'impala' -->
         <!-- ko if: sourceType === 'hive' || sourceType === 'impala' -->
         <!-- ko if: typeof databaseName !== 'undefined' -->
         <!-- ko if: typeof databaseName !== 'undefined' -->
-          <a class="inactive-action" data-bind="hueLink: '${ url('indexer:importer_prefill', source_type='all', target_type='table') }' + databaseName + '?sourceType=' + sourceType" title="${_('Create table')}" href="javascript:void(0)">
+          <a class="inactive-action" data-bind="hueLink: '${ url('indexer:importer_prefill', source_type='all', target_type='table') }' + databaseName + '/?sourceType=' + sourceType" title="${_('Create table')}" href="javascript:void(0)">
             <i class="pointer fa fa-plus" title="${_('Create table')}"></i>
             <i class="pointer fa fa-plus" title="${_('Create table')}"></i>
           </a>
           </a>
         <!-- /ko -->
         <!-- /ko -->
         <!-- ko if: typeof databases !== 'undefined' -->
         <!-- ko if: typeof databases !== 'undefined' -->
-          <a class="inactive-action" data-bind="hueLink: '${ url('indexer:importer_prefill', source_type='manual', target_type='database') }' + '?sourceType=' + sourceType" href="javascript:void(0)">
+          <a class="inactive-action" data-bind="hueLink: '${ url('indexer:importer_prefill', source_type='manual', target_type='database') }' + '/?sourceType=' + sourceType" href="javascript:void(0)">
             <i class="pointer fa fa-plus" title="${ _('Create database') }"></i>
             <i class="pointer fa fa-plus" title="${ _('Create database') }"></i>
           </a>
           </a>
         <!-- /ko -->
         <!-- /ko -->