Skip to content

About Multiple Sidebars fallback of redirect #970

@my9074

Description

@my9074

Bug report

In Multiple Sidebars mode, I can't config sidebar to redirect /components/ with / root path

directory structure:

├── components
│   ├── README.md
│   ├── i18n.md
│   ├── quickstart.md
│   └── text.md
└── guide
    └── FAQ.md

config.js

sidebar: {
   '/components/': [
     '',
     ['quickstart', 'Quick Start'],
     ['i18n', 'Internationalization'],
     {
       title: 'components',
       collapsable: false,
       children: [['text', 'Text']]
      }
   ],
   '/guide/': ['FAQ'],
   '/': ['']   // how to config to redirect '/components/' ???
}

Version

0.14.4

Steps to reproduce

What is expected?

Sidebar provides a property that supports redirect to other route

What is actually happening?

Other relevant information

  • Your OS: MacOS 10.13
  • Node.js version: 8.11.*
  • Browser version: Chrome 70+
  • Is this a global or local install? local
  • Which package manager did you use for the install? npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions