Skip to content

Commit

Permalink
Redirect from old Visualize wizard routes to new ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Feb 6, 2017
1 parent 668d598 commit 99525ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/core_plugins/kibana/public/visualize/wizard/wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ const module = uiModules.get('app/visualize', ['kibana/courier']);
/********
/** Wizard Step 1
/********/

// Redirect old route to new route.
routes.when('/visualize/step/1', {
redirectTo: VisualizeConstants.WIZARD_STEP_1_PAGE_URL,
});

routes.when(VisualizeConstants.WIZARD_STEP_1_PAGE_URL, {
template: visualizeWizardStep1Template,
controller: 'VisualizeWizardStep1',
Expand Down Expand Up @@ -47,6 +53,14 @@ module.controller('VisualizeWizardStep1', function ($scope, $route, kbnUrl, time
/********
/** Wizard Step 2
/********/

// Redirect old route to new route.
// NOTE: Accessing this route directly means the user has entered into the wizard UX without
// selecting a Visualization type in step 1. So we want to redirect them to step 1, not step 2.
routes.when('/visualize/step/2', {
redirectTo: VisualizeConstants.WIZARD_STEP_1_PAGE_URL,
});

routes.when(VisualizeConstants.WIZARD_STEP_2_PAGE_URL, {
template: visualizeWizardStep2Template,
controller: 'VisualizeWizardStep2',
Expand Down
1 change: 0 additions & 1 deletion src/ui_framework/doc_site/src/views/icon/icon_basic.html

This file was deleted.

0 comments on commit 99525ac

Please sign in to comment.