vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.29k stars 926 forks source link

[Bug report] resolveRoute does not support relative path #1492

Closed Mister-Hope closed 4 months ago

Mister-Hope commented 7 months ago

Description

resolveRoute should support relative path, just like router.resolve()

E.g.:

// at /page/a.html
resolve('b.html') // should be /page/b.html
resolve('../') // should be /

Why this is needed

prev and next links are based on current route path, as people just set relative links like ./a.md and ../

github-actions[bot] commented 7 months ago

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 7 days.

meteorlxy commented 4 months ago

Closed by #1545