lando / vitepress-theme-default-plus

The VitePress Default Theme with a little more POWAH
https://vitepress-theme-default-plus.lando.dev/
GNU General Public License v3.0
21 stars 2 forks source link

fix(useCollection): use base url in index finder #37

Open mtdvlpr opened 2 months ago

mtdvlpr commented 2 months ago

Currently, when a base url is configured, the findCurrentIndex function compares p.url (/relative-url) with route.path (/base/relative-url) which causes the current, previous and next pages to not be found.

This PR should fix that.

netlify[bot] commented 2 months ago

Deploy request for vitepress-theme-default-plus pending review.

Visit the deploys page to approve it

Name Link
Latest commit 0df92b2054768a5e5a8b22699c6007f3281790b2
mtdvlpr commented 2 months ago

@pirog, could you please review this when you get the time? :)