code: function createRedirect(options) {
        return Route.createRoute(assign({}, options, {
          path: options.path || options.from || '*',
          onEnter: function onEnter(transition, params, query) {
            transition.redirect(options.to, options.params || params, options.query || query);
          }
        }));
      }
docs: Creates and returns a route that automatically redirects the transition
  to another route. In addition to the normal options to createRoute, this
  function accepts the following options:
  
  - from         An alias for the `path` option. Defaults to *
  - to           The path/route/route name to redirect to
  - params       The params to use in the redirect URL. Defaults
  to using the current params
  - query        The query to use in the redirect URL. Defaults
  to using the current query