vuepress/vuepress-theme-blog

Empty links in footer become <URL>/.html

lirc572 opened this issue · 0 comments

  • I confirm that this is an issue rather than a question.

Bug report

Under footer configurations, when the link attribute of copyright/contact is set to an empty string ('') as the guide suggests, the link becomes <URL>/.html which is a 404 page. Perhaps it should be treated as the root path ('/') instead.

If this behavior is expected, it would be better to change the empty link in the guide to '/'.

Steps to reproduce

  • I prepared a reproduction repo, here is the reproduction repo:

  • This issue doesn't need a reproduction repro, here is the steps to reproduce:

Follow the guide on copyright information and create a copyright notice as follows:

module.exports = {
  themeConfig: {
    footer: {
      copyright: [
        {
          text: 'MIT Licensed | Copyright © 2018-present Vue.js',
          link: '',
        },
      ],
    },
  },
}

When clicking on the copyright text, the browser will redirect to <URL>/.html and show a 404 page.

What is expected?

Do nothing or go to home page.

What is actually happening?

Go to /.html and show 404.

This behavior is shown on all the live example sites.

Other relevant information

N/A