vuepress / vuepress-theme-blog

Default blog theme for VuePress.
https://vuepress-theme-blog.billyyyyy3320.com/
MIT License
211 stars 129 forks source link

Empty links in footer become <URL>/.html #105

Closed lirc572 closed 3 years ago

lirc572 commented 3 years ago

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

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