Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

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

Closed
2 of 3 tasks
lirc572 opened this issue Oct 7, 2020 · 0 comments · Fixed by #111
Closed
2 of 3 tasks

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

lirc572 opened this issue Oct 7, 2020 · 0 comments · Fixed by #111
Labels
bug Something isn't working

Comments

@lirc572
Copy link

lirc572 commented Oct 7, 2020

  • 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
2 participants