vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.48k stars 4.78k forks source link

unexpected nav link #2292

Open haoranpb opened 4 years ago

haoranpb commented 4 years ago

Bug report

Found on stackoverflow

Steps to reproduce

// .vuepress/config.js
module.exports = {
  themeConfig: {
    nav: [
      { text: 'RSS', link: '/rss.xml' }
    ]
  }
}

What is expected?

get link in nav /rss.xml

What is actually happening?

got /rss.xml.html

Other relevant information

billyyyyy3320 commented 4 years ago

Currently, internal links without ending slash will get .html suffix. Using full path such as https://yourdomain/rss.xml can resolve it.

However, it might be great if it can simply type '/rss.xml' instead.

Mister-Hope commented 4 years ago

I can help to fix it, if you are working on it @newsbielt703